We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23fbfe9 commit 951933bCopy full SHA for 951933b
examples/CMakeLists.txt
@@ -61,11 +61,7 @@ add_library(${TARGET} STATIC
61
62
include(DefaultTargetOptions)
63
64
-if(UNIX AND NOT APPLE)
65
- target_link_libraries(${TARGET} PRIVATE whisper ${COMMON_EXTRA_LIBS} dl)
66
-else()
67
- target_link_libraries(${TARGET} PRIVATE whisper ${COMMON_EXTRA_LIBS})
68
-endif()
+target_link_libraries(${TARGET} PRIVATE whisper ${COMMON_EXTRA_LIBS} ${CMAKE_DL_LIBS})
69
70
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
71
set_target_properties(${TARGET} PROPERTIES FOLDER "libs")
0 commit comments