diff options
| author | Andrew Wilkins <axwalk@gmail.com> | 2016-02-12 01:42:43 +0000 |
|---|---|---|
| committer | Andrew Wilkins <axwalk@gmail.com> | 2016-02-12 01:42:43 +0000 |
| commit | 095e22de475497ba2f3673ded2ea7a000cc24b66 (patch) | |
| tree | d78bc8809ca8f9bfcf952aa5c34ee9d86324ff90 /llvm/utils/unittest/CMakeLists.txt | |
| parent | 66a7385e275e361b7ca8c4fc0a5942f80105c192 (diff) | |
| download | bcm5719-llvm-095e22de475497ba2f3673ded2ea7a000cc24b66.tar.gz bcm5719-llvm-095e22de475497ba2f3673ded2ea7a000cc24b66.zip | |
Avoid linking LLVM component libraries with libLLVM
Patch by Jack Howarth.
When linking to libLLVM, don't also link to the component
libraries that constitute libLLVM.
Differential Revision: http://reviews.llvm.org/D16945
llvm-svn: 260641
Diffstat (limited to 'llvm/utils/unittest/CMakeLists.txt')
| -rw-r--r-- | llvm/utils/unittest/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/utils/unittest/CMakeLists.txt b/llvm/utils/unittest/CMakeLists.txt index b34e22ae0cb..c9a2cdd45c8 100644 --- a/llvm/utils/unittest/CMakeLists.txt +++ b/llvm/utils/unittest/CMakeLists.txt @@ -32,10 +32,6 @@ if (NOT LLVM_ENABLE_THREADS) add_definitions( -DGTEST_HAS_PTHREAD=0 ) endif() -set(LIBS - LLVMSupport # Depends on llvm::raw_ostream -) - find_library(PTHREAD_LIBRARY_PATH pthread) if (PTHREAD_LIBRARY_PATH) list(APPEND LIBS pthread) @@ -46,6 +42,9 @@ add_llvm_library(gtest LINK_LIBS ${LIBS} + + LINK_COMPONENTS + Support # Depends on llvm::raw_ostream ) add_subdirectory(UnitTestMain) |

