From: Oscar Fuentes Date: Wed, 12 Nov 2008 20:40:56 +0000 (+0000) Subject: CMake: when bulding shared libraries on non-WIN32 systems, link dl to X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bc8dda83ef0bbd15c4f4cfb62a0148c53587313f;p=oota-llvm.git CMake: when bulding shared libraries on non-WIN32 systems, link dl to LLVMSystem. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59159 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/System/CMakeLists.txt b/lib/System/CMakeLists.txt index 31baf356bb0..4b9ce5dabf2 100644 --- a/lib/System/CMakeLists.txt +++ b/lib/System/CMakeLists.txt @@ -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()