blob: dbc5b30c31b6f60683d9af37f3f688f4bcc2dce6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- cmocka-1.1.7/src/CMakeLists.txt 2023-02-23 15:05:42.000000000 +0100
+++ patched/src/CMakeLists.txt 2023-06-02 20:57:57.103331604 +0200
@@ -78,7 +78,7 @@
NAMESPACE cmocka::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cmocka)
-if (UNIT_TESTING)
+#if (UNIT_TESTING)
# Internal library
add_library(cmocka-static STATIC ${cmocka_SRCS})
@@ -103,4 +103,10 @@
target_link_libraries(cmocka-static PRIVATE ${CMOCKA_LINK_LIBRARIES})
add_library(cmocka::static ALIAS cmocka-static)
-endif()
+#endif()
+
+install(TARGETS cmocka-static
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+ COMPONENT ${PROJECT_NAME})
|