We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent badcac8 commit 766e7f6Copy full SHA for 766e7f6
cmake/Spt3gIncludes.cmake
@@ -28,6 +28,10 @@ endmacro(add_spt3g_program prog_name)
28
29
macro(add_spt3g_executable prog_name)
30
add_executable(${prog_name} ${ARGN})
31
+ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
32
+ # Assume Linux-style ld linker
33
+ set_target_properties(${mod_name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")
34
+ endif()
35
if(TARGET Python::Python)
36
target_link_libraries(${prog_name} Python::Python)
37
else()
0 commit comments