Skip to content

Commit e5350ba

Browse files
committed
Always add CMAKE_DL_LIBS to test_runner.
1 parent c1a4067 commit e5350ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Release/tests/common/TestRunner/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ if (WIN32)
77
endif()
88

99
add_executable(test_runner test_runner.cpp test_module_loader.cpp)
10-
target_link_libraries(test_runner PRIVATE unittestpp)
10+
target_link_libraries(test_runner PRIVATE unittestpp ${CMAKE_DL_LIBS})
1111

1212
if(BUILD_SHARED_LIBS)
13-
target_link_libraries(test_runner PRIVATE ${CMAKE_DL_LIBS})
1413
elseif(APPLE)
1514
target_link_libraries(test_runner PRIVATE
1615
-Wl,-force_load httpclient_test
@@ -22,7 +21,7 @@ elseif(APPLE)
2221
-Wl,-force_load utils_test
2322
)
2423
elseif(UNIX)
25-
target_link_libraries(test_runner PRIVATE ${CMAKE_DL_LIBS}
24+
target_link_libraries(test_runner PRIVATE
2625
-Wl,--whole-archive
2726
httpclient_test
2827
json_test

0 commit comments

Comments
 (0)