# HG changeset patch # User David Demelier # Date 1413548400 -7200 # Node ID 44dcc198bf0c36563352f9efa60c38dcc18267d5 # Parent b5d7953893878d509b0b505e11d6a786ad2256ad Dynlib (test): Add dl library for Linux diff -r b5d795389387 -r 44dcc198bf0c C++/Tests/DynLib/CMakeLists.txt --- a/C++/Tests/DynLib/CMakeLists.txt Wed Oct 15 21:29:20 2014 +0200 +++ b/C++/Tests/DynLib/CMakeLists.txt Fri Oct 17 14:20:00 2014 +0200 @@ -33,6 +33,10 @@ define_test(dynlib "${SOURCES}") +if (CMAKE_SYSTEM_NAME MATCHES "Linux") + target_link_libraries(dynlib dl) +endif () + # The extension for the system if(WIN32) set(EXTENSION ".dll")