Fix linking of llvm-ld and lli with CMake, from Xerxes RĂ„nby
authorDouglas Gregor <dgregor@apple.com>
Fri, 26 Jun 2009 15:37:00 +0000 (15:37 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 26 Jun 2009 15:37:00 +0000 (15:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74285 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CMakeLists.txt
lib/CodeGen/CMakeLists.txt
lib/Support/CMakeLists.txt
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Utils/CMakeLists.txt

index cf2f434405c4067b245b1bcd20c98507c6cbe580..6f2a06c7ac8fe597af56f306dee45838ebf81f74 100644 (file)
@@ -33,3 +33,5 @@ add_llvm_library(LLVMAnalysis
   Trace.cpp
   ValueTracking.cpp
   )
+
+target_link_libraries (LLVMAnalysis LLVMSupport)
index 5ba8b3c147a2006dfa7de88c660d25ae47ba3c86..eeefe3147a6d696b5de495322c1fd3fac2ed5cb7 100644 (file)
@@ -63,3 +63,5 @@ add_llvm_library(LLVMCodeGen
   VirtRegMap.cpp
   VirtRegRewriter.cpp
   )
+
+target_link_libraries (LLVMCodeGen LLVMCore)
index e7a76cc3f2361d1372fc92bdbb99b415d71e6450..f26c2c0f4ecac0f395ba96e88c3c26fbae610758 100644 (file)
@@ -30,3 +30,5 @@ add_llvm_library(LLVMSupport
   Triple.cpp
   raw_ostream.cpp
   )
+
+target_link_libraries (LLVMSupport LLVMSystem)
index 7a7c48b16155d922e0806c6238f392a3d5692d94..8a8f83fa311d8ff2cfca924143a386eac5a4da7d 100644 (file)
@@ -31,3 +31,5 @@ add_llvm_library(LLVMScalarOpts
   TailDuplication.cpp
   TailRecursionElimination.cpp
   )
+
+target_link_libraries (LLVMScalarOpts LLVMTransformUtils)
index 6628b4b1aa93b6b5c6f211fe838c403567e1e002..d68bf0291011e70997479c5359c35be03c2122be 100644 (file)
@@ -25,3 +25,5 @@ add_llvm_library(LLVMTransformUtils
   ValueMapper.cpp
   InstructionNamer.cpp
   )
+
+target_link_libraries (LLVMTransformUtils LLVMSupport)