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 3e82286 commit d040682Copy full SHA for d040682
tests/CMakeLists.txt
@@ -41,12 +41,7 @@ if(BUILD_TESTS)
41
42
43
find_package(Threads)
44
- set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${CMAKE_THREAD_LIBS_INIT} ${TARGET_LINK})
45
-
46
- if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
47
- find_library(DL_LIB dl)
48
- set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${DL_LIB})
49
- endif()
+ set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS} ${TARGET_LINK})
50
51
find_library(M_LIB m)
52
set(TARGET_LINK_LIB ${TARGET_LINK_LIB} ${M_LIB})
0 commit comments