summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Testing/Support/CMakeLists.txt
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-04-08 06:49:17 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-04-08 06:49:17 +0000
commit47671e31cd911681267411f25200571f937d6ee1 (patch)
tree497841fb9a1ed3cd135f0b664ab8e09f41e5ee7d /llvm/lib/Testing/Support/CMakeLists.txt
parent4b8c991870a03d6e526610cd20da75d2c96b910f (diff)
downloadbcm5719-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.txt5
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)
OpenPOWER on IntegriCloud