mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[CMake] Use LINK_LIBS instead of target_link_libraries().
llvm-svn: 202238
This commit is contained in:
parent
f8c9edf05c
commit
03fcc44664
@ -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}
|
||||
)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user