summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-21 01:30:21 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-21 01:30:21 +0000
commit28969b41392de338668f7a68f68aa036c2dfdd3c (patch)
treef3a4ca0dc40a591e778c50ccf15092eed3dd4a14 /clang/tools/c-index-test
parentc7b0bdffe75c05aeb4a0689086d899c5527c3c7b (diff)
downloadbcm5719-llvm-28969b41392de338668f7a68f68aa036c2dfdd3c.tar.gz
bcm5719-llvm-28969b41392de338668f7a68f68aa036c2dfdd3c.zip
Remove a goofy CMake hack and use the standard CMake facilities to
express library-level dependencies within Clang. This is no more verbose really, and plays nicer with the rest of the CMake facilities. It should also have no change in functionality. llvm-svn: 158888
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r--clang/tools/c-index-test/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
index c44b34b8205..743268cb51a 100644
--- a/clang/tools/c-index-test/CMakeLists.txt
+++ b/clang/tools/c-index-test/CMakeLists.txt
@@ -1,5 +1,3 @@
-set(LLVM_USED_LIBS libclang)
-
set( LLVM_LINK_COMPONENTS
support
mc
@@ -9,6 +7,10 @@ add_clang_executable(c-index-test
c-index-test.c
)
+target_link_libraries(c-index-test
+ libclang
+ )
+
set_target_properties(c-index-test
PROPERTIES
LINKER_LANGUAGE CXX)
OpenPOWER on IntegriCloud