File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed
Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1- add_subdirectory (executable )
2- add_subdirectory (library )
1+ if (SUPPORT_PRELOAD)
2+ add_subdirectory (executable )
3+ add_subdirectory (library )
4+ endif ()
Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ set_target_properties(er PROPERTIES
3535 LINKER_LANGUAGE "C"
3636 )
3737
38- if (SUPPORT_PRELOAD)
39- include (GNUInstallDirs )
40- install (TARGETS er
41- RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR} )
42- endif ()
38+ include (GNUInstallDirs )
39+ install (TARGETS er
40+ RUNTIME DESTINATION ${CMAKE_INSTALL_LIBEXECDIR} )
4341
4442# Create unit test
4543if (ENABLE_UNIT_TESTS)
Original file line number Diff line number Diff line change @@ -43,11 +43,9 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
4343 set_target_properties (exec PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR} /libexec.version" )
4444endif ()
4545
46- if (SUPPORT_PRELOAD)
47- include (GNUInstallDirs )
48- install (TARGETS exec
49- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBEXECDIR} )
50- endif ()
46+ include (GNUInstallDirs )
47+ install (TARGETS exec
48+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBEXECDIR} )
5149
5250# Create unit test.
5351if (ENABLE_UNIT_TESTS)
You can’t perform that action at this time.
0 commit comments