diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-13 23:59:48 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-13 23:59:48 +0000 |
commit | 3a210e2d302758101ac06946e86027b327c7d0f3 (patch) | |
tree | e12390ee573b3d34a2b48b5aadfcb52d2b46296a /examples | |
parent | bd916c54b7989ddbab373c61eb1ed2556ca44d27 (diff) | |
download | external_llvm-3a210e2d302758101ac06946e86027b327c7d0f3.zip external_llvm-3a210e2d302758101ac06946e86027b327c7d0f3.tar.gz external_llvm-3a210e2d302758101ac06946e86027b327c7d0f3.tar.bz2 |
Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally."
This reverts commit r113632
Conflicts:
cmake/modules/AddLLVM.cmake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/BrainF/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/ExceptionDemo/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/Fibonacci/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/HowToUseJIT/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter3/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter4/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter5/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter6/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/Kaleidoscope/Chapter7/CMakeLists.txt | 5 | ||||
-rw-r--r-- | examples/ModuleMaker/CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/ParallelJIT/CMakeLists.txt | 4 |
11 files changed, 22 insertions, 27 deletions
diff --git a/examples/BrainF/CMakeLists.txt b/examples/BrainF/CMakeLists.txt index 4859634..7bec105 100644 --- a/examples/BrainF/CMakeLists.txt +++ b/examples/BrainF/CMakeLists.txt @@ -1,7 +1,6 @@ +set(LLVM_LINK_COMPONENTS jit bitwriter nativecodegen interpreter) + add_llvm_example(BrainF BrainF.cpp BrainFDriver.cpp ) - -add_llvm_link_components(BrainF jit nativecodegen interpreter) -target_link_libraries(BrainF LLVMBitWriter) diff --git a/examples/ExceptionDemo/CMakeLists.txt b/examples/ExceptionDemo/CMakeLists.txt index 293c66b..d661915 100644 --- a/examples/ExceptionDemo/CMakeLists.txt +++ b/examples/ExceptionDemo/CMakeLists.txt @@ -1,5 +1,5 @@ +set(LLVM_LINK_COMPONENTS jit nativecodegen) + add_llvm_example(ExceptionDemo ExceptionDemo.cpp ) - -add_llvm_link_components(ExceptionDemo jit nativecodegen) diff --git a/examples/Fibonacci/CMakeLists.txt b/examples/Fibonacci/CMakeLists.txt index 7b8c3ea..6937612 100644 --- a/examples/Fibonacci/CMakeLists.txt +++ b/examples/Fibonacci/CMakeLists.txt @@ -1,5 +1,5 @@ +set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) + add_llvm_example(Fibonacci fibonacci.cpp ) - -add_llvm_link_components(Fibonacci jit interpreter nativecodegen) diff --git a/examples/HowToUseJIT/CMakeLists.txt b/examples/HowToUseJIT/CMakeLists.txt index 672af14..428b53f 100644 --- a/examples/HowToUseJIT/CMakeLists.txt +++ b/examples/HowToUseJIT/CMakeLists.txt @@ -1,5 +1,5 @@ +set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) + add_llvm_example(HowToUseJIT HowToUseJIT.cpp ) - -add_llvm_link_components(HowToUseJIT jit interpreter nativecodegen) diff --git a/examples/Kaleidoscope/Chapter3/CMakeLists.txt b/examples/Kaleidoscope/Chapter3/CMakeLists.txt index 059d7f6..1af8db0 100644 --- a/examples/Kaleidoscope/Chapter3/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter3/CMakeLists.txt @@ -1,5 +1,5 @@ +set(LLVM_LINK_COMPONENTS core) + add_llvm_example(Kaleidoscope-Ch3 toy.cpp ) - -target_link_libraries(Kaleidoscope-Ch3 LLVMCore) diff --git a/examples/Kaleidoscope/Chapter4/CMakeLists.txt b/examples/Kaleidoscope/Chapter4/CMakeLists.txt index 7aa18b8..0d1ac53 100644 --- a/examples/Kaleidoscope/Chapter4/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter4/CMakeLists.txt @@ -1,6 +1,5 @@ +set(LLVM_LINK_COMPONENTS core jit interpreter native) + add_llvm_example(Kaleidoscope-Ch4 toy.cpp ) - -add_llvm_link_components(Kaleidoscope-Ch4 jit interpreter native) -target_link_libraries(Kaleidoscope-Ch4 LLVMCore) diff --git a/examples/Kaleidoscope/Chapter5/CMakeLists.txt b/examples/Kaleidoscope/Chapter5/CMakeLists.txt index 33a0651..2d75ad3 100644 --- a/examples/Kaleidoscope/Chapter5/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter5/CMakeLists.txt @@ -1,6 +1,5 @@ +set(LLVM_LINK_COMPONENTS core jit interpreter native) + add_llvm_example(Kaleidoscope-Ch5 toy.cpp ) - -add_llvm_link_components(Kaleidoscope-Ch5 jit interpreter native) -target_link_libraries(Kaleidoscope-Ch5 LLVMCore) diff --git a/examples/Kaleidoscope/Chapter6/CMakeLists.txt b/examples/Kaleidoscope/Chapter6/CMakeLists.txt index 002e0d4..2e15a5f 100644 --- a/examples/Kaleidoscope/Chapter6/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter6/CMakeLists.txt @@ -1,6 +1,5 @@ +set(LLVM_LINK_COMPONENTS core jit interpreter native) + add_llvm_example(Kaleidoscope-Ch6 toy.cpp ) - -add_llvm_link_components(Kaleidoscope-Ch6 jit interpreter native) -target_link_libraries(Kaleidoscope-Ch6 LLVMCore) diff --git a/examples/Kaleidoscope/Chapter7/CMakeLists.txt b/examples/Kaleidoscope/Chapter7/CMakeLists.txt index 3c4ac17..9b8227c 100644 --- a/examples/Kaleidoscope/Chapter7/CMakeLists.txt +++ b/examples/Kaleidoscope/Chapter7/CMakeLists.txt @@ -1,6 +1,5 @@ +set(LLVM_LINK_COMPONENTS core jit interpreter native) + add_llvm_example(Kaleidoscope-Ch7 toy.cpp ) - -add_llvm_link_components(Kaleidoscope-Ch7 jit interpreter native) -target_link_libraries(Kaleidoscope-Ch7 LLVMCore) diff --git a/examples/ModuleMaker/CMakeLists.txt b/examples/ModuleMaker/CMakeLists.txt index 735942d..81e9115 100644 --- a/examples/ModuleMaker/CMakeLists.txt +++ b/examples/ModuleMaker/CMakeLists.txt @@ -1,5 +1,5 @@ +set(LLVM_LINK_COMPONENTS bitwriter) + add_llvm_example(ModuleMaker ModuleMaker.cpp ) - -target_link_libraries(ModuleMaker LLVMBitWriter LLVMCore) diff --git a/examples/ParallelJIT/CMakeLists.txt b/examples/ParallelJIT/CMakeLists.txt index 91ac5ef..fbdc6e5 100644 --- a/examples/ParallelJIT/CMakeLists.txt +++ b/examples/ParallelJIT/CMakeLists.txt @@ -1,9 +1,9 @@ +set(LLVM_LINK_COMPONENTS jit interpreter nativecodegen) + add_llvm_example(ParallelJIT ParallelJIT.cpp ) -add_llvm_link_components(ParallelJIT jit interpreter nativecodegen) - if(HAVE_LIBPTHREAD) target_link_libraries(ParallelJIT pthread) endif(HAVE_LIBPTHREAD) |