CMake: when bulding shared libraries on non-WIN32 systems, link dl to
authorOscar Fuentes <ofv@wanadoo.es>
Wed, 12 Nov 2008 20:40:56 +0000 (20:40 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Wed, 12 Nov 2008 20:40:56 +0000 (20:40 +0000)
LLVMSystem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59159 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/CMakeLists.txt

index 31baf356bb05279e6272ac998b51b0583ef0ab35..4b9ce5dabf259b08ce78c0399ef411aee86fec82 100644 (file)
@@ -12,3 +12,7 @@ add_llvm_library(LLVMSystem
   Signals.cpp
   TimeValue.cpp
   )
+
+if( BUILD_SHARED_LIBS AND NOT WIN32 )
+  target_link_libraries(LLVMSystem dl)
+endif()