mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
[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
This commit is contained in:
parent
9262808ecd
commit
5fb5076e28
@ -1,7 +1,11 @@
|
|||||||
|
if(HAVE_LIBEDIT)
|
||||||
|
set(link_libs edit)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_llvm_library(LLVMLineEditor
|
add_llvm_library(LLVMLineEditor
|
||||||
LineEditor.cpp
|
LineEditor.cpp
|
||||||
)
|
|
||||||
|
|
||||||
if(HAVE_LIBEDIT)
|
LINK_LIBS
|
||||||
target_link_libraries(LLVMLineEditor edit)
|
LLVMSupport
|
||||||
endif()
|
${link_libs}
|
||||||
|
)
|
||||||
|
@ -40,11 +40,9 @@ endif ()
|
|||||||
|
|
||||||
add_llvm_library(gtest
|
add_llvm_library(gtest
|
||||||
googletest/src/gtest-all.cc
|
googletest/src/gtest-all.cc
|
||||||
)
|
|
||||||
|
|
||||||
# Depends on llvm::raw_ostream
|
LINK_LIBS
|
||||||
target_link_libraries(gtest
|
LLVMSupport # Depends on llvm::raw_ostream
|
||||||
LLVMSupport
|
|
||||||
)
|
)
|
||||||
|
|
||||||
add_subdirectory(UnitTestMain)
|
add_subdirectory(UnitTestMain)
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
add_llvm_library(gtest_main
|
add_llvm_library(gtest_main
|
||||||
TestMain.cpp
|
TestMain.cpp
|
||||||
)
|
|
||||||
|
|
||||||
# Depends on llvm::cl
|
LINK_LIBS
|
||||||
target_link_libraries(gtest_main
|
|
||||||
gtest
|
gtest
|
||||||
LLVMSupport
|
LLVMSupport # Depends on llvm::cl
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user