Skip to content

Commit 21e721d

Browse files
committed
libexec: don't build it on macos
1 parent ec85db4 commit 21e721d

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
add_subdirectory(executable)
2-
add_subdirectory(library)
1+
if (SUPPORT_PRELOAD)
2+
add_subdirectory(executable)
3+
add_subdirectory(library)
4+
endif()

source/intercept-library/executable/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
4543
if (ENABLE_UNIT_TESTS)

source/intercept-library/library/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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")
4444
endif ()
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.
5351
if (ENABLE_UNIT_TESTS)

0 commit comments

Comments
 (0)