summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LineEditor/CMakeLists.txt
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-02-26 06:41:29 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-02-26 06:41:29 +0000
commit96986865050b12a0259813a3bfef5e2d03d3f030 (patch)
treede71df74821902e26883b6b929f92a5183a3f30e /llvm/lib/LineEditor/CMakeLists.txt
parent55a02eaa829eae66b980b6b1d897b8f5e67d6b01 (diff)
downloadbcm5719-llvm-96986865050b12a0259813a3bfef5e2d03d3f030.tar.gz
bcm5719-llvm-96986865050b12a0259813a3bfef5e2d03d3f030.zip
[CMake] Use LINK_LIBS instead of target_link_libraries().
llvm-svn: 202238
Diffstat (limited to 'llvm/lib/LineEditor/CMakeLists.txt')
-rw-r--r--llvm/lib/LineEditor/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/LineEditor/CMakeLists.txt b/llvm/lib/LineEditor/CMakeLists.txt
index cef36a40b47..0dec256e415 100644
--- a/llvm/lib/LineEditor/CMakeLists.txt
+++ b/llvm/lib/LineEditor/CMakeLists.txt
@@ -1,7 +1,11 @@
+if(HAVE_LIBEDIT)
+ set(link_libs edit)
+endif()
+
add_llvm_library(LLVMLineEditor
LineEditor.cpp
- )
-if(HAVE_LIBEDIT)
- target_link_libraries(LLVMLineEditor edit)
-endif()
+ LINK_LIBS
+ LLVMSupport
+ ${link_libs}
+)
OpenPOWER on IntegriCloud