summaryrefslogtreecommitdiff
path: root/lib/LineEditor
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
commit5fb5076e284e074c4113fdc309636b930c244c87 (patch)
tree29ea02409a170129d0b3a78b2d9f9f007b8184d3 /lib/LineEditor
parent9262808ecdd2d79cdb4619fc37424ad446ee2fcb (diff)
downloadllvm-5fb5076e284e074c4113fdc309636b930c244c87.tar.gz
llvm-5fb5076e284e074c4113fdc309636b930c244c87.tar.bz2
llvm-5fb5076e284e074c4113fdc309636b930c244c87.tar.xz
[CMake] Use LINK_LIBS instead of target_link_libraries().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/LineEditor')
-rw-r--r--lib/LineEditor/CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/LineEditor/CMakeLists.txt b/lib/LineEditor/CMakeLists.txt
index cef36a40b4..0dec256e41 100644
--- a/lib/LineEditor/CMakeLists.txt
+++ b/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}
+)