diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-04-08 06:49:17 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-04-08 06:49:17 +0000 |
commit | 47671e31cd911681267411f25200571f937d6ee1 (patch) | |
tree | 497841fb9a1ed3cd135f0b664ab8e09f41e5ee7d /llvm/lib/Testing/Support/CMakeLists.txt | |
parent | 4b8c991870a03d6e526610cd20da75d2c96b910f (diff) | |
download | bcm5719-llvm-47671e31cd911681267411f25200571f937d6ee1.tar.gz bcm5719-llvm-47671e31cd911681267411f25200571f937d6ee1.zip |
[LLVMTestingSupport] Add explicit linkage to LLVMSupport
Explicitly link LLVMTestingSupport library against LLVMSupport. This
is necessary to fix linking errors when LLVMTestingSupport is built
as a shared library (with BUILD_SHARED_LIBS=ON) and -Wl,-z,defs is used.
Differential Revision: https://reviews.llvm.org/D45408
llvm-svn: 329522
Diffstat (limited to 'llvm/lib/Testing/Support/CMakeLists.txt')
-rw-r--r-- | llvm/lib/Testing/Support/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Testing/Support/CMakeLists.txt b/llvm/lib/Testing/Support/CMakeLists.txt index 8ab6fd9a25a..969875e55a1 100644 --- a/llvm/lib/Testing/Support/CMakeLists.txt +++ b/llvm/lib/Testing/Support/CMakeLists.txt @@ -8,8 +8,11 @@ add_llvm_library(LLVMTestingSupport ADDITIONAL_HEADER_DIRS ${LLVM_MAIN_INCLUDE_DIR}/llvm/Testing/Support + + LINK_COMPONENTS + Support ) include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include) include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include) -target_link_libraries(LLVMTestingSupport PRIVATE gtest)
\ No newline at end of file +target_link_libraries(LLVMTestingSupport PRIVATE gtest) |