forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |