diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-26 06:41:29 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-02-26 06:41:29 +0000 |
| commit | 96986865050b12a0259813a3bfef5e2d03d3f030 (patch) | |
| tree | de71df74821902e26883b6b929f92a5183a3f30e /llvm | |
| parent | 55a02eaa829eae66b980b6b1d897b8f5e67d6b01 (diff) | |
| download | bcm5719-llvm-96986865050b12a0259813a3bfef5e2d03d3f030.tar.gz bcm5719-llvm-96986865050b12a0259813a3bfef5e2d03d3f030.zip | |
[CMake] Use LINK_LIBS instead of target_link_libraries().
llvm-svn: 202238
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/LineEditor/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | llvm/utils/unittest/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/CMakeLists.txt | 6 |
3 files changed, 12 insertions, 12 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} +) diff --git a/llvm/utils/unittest/CMakeLists.txt b/llvm/utils/unittest/CMakeLists.txt index 64446eff41d..b6d2d6d9e0e 100644 --- a/llvm/utils/unittest/CMakeLists.txt +++ b/llvm/utils/unittest/CMakeLists.txt @@ -40,11 +40,9 @@ endif () add_llvm_library(gtest googletest/src/gtest-all.cc - ) -# Depends on llvm::raw_ostream -target_link_libraries(gtest - LLVMSupport + LINK_LIBS + LLVMSupport # Depends on llvm::raw_ostream ) add_subdirectory(UnitTestMain) diff --git a/llvm/utils/unittest/UnitTestMain/CMakeLists.txt b/llvm/utils/unittest/UnitTestMain/CMakeLists.txt index 5f3e6c1ec52..65ef97b0281 100644 --- a/llvm/utils/unittest/UnitTestMain/CMakeLists.txt +++ b/llvm/utils/unittest/UnitTestMain/CMakeLists.txt @@ -1,9 +1,7 @@ add_llvm_library(gtest_main TestMain.cpp - ) -# Depends on llvm::cl -target_link_libraries(gtest_main + LINK_LIBS gtest - LLVMSupport + LLVMSupport # Depends on llvm::cl ) |

