changeset 269:44dcc198bf0c

Dynlib (test): Add dl library for Linux
author David Demelier <markand@malikania.fr>
date Fri, 17 Oct 2014 14:20:00 +0200
parents b5d795389387
children 46ccfbee84d9
files C++/Tests/DynLib/CMakeLists.txt
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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")