llvm.org GIT mirror llvm / 5fb5076
[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 NAKAMURA Takumi 5 years ago
3 changed file(s) with 14 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
0 if(HAVE_LIBEDIT)
1 set(link_libs edit)
2 endif()
3
4 add_llvm_library(LLVMLineEditor
15 LineEditor.cpp
2 )
36
4 if(HAVE_LIBEDIT)
5 target_link_libraries(LLVMLineEditor edit)
6 endif()
7 LINK_LIBS
8 LLVMSupport
9 ${link_libs}
10 )
3939
4040 add_llvm_library(gtest
4141 googletest/src/gtest-all.cc
42 )
4342
44 # Depends on llvm::raw_ostream
45 target_link_libraries(gtest
46 LLVMSupport
43 LINK_LIBS
44 LLVMSupport # Depends on llvm::raw_ostream
4745 )
4846
4947 add_subdirectory(UnitTestMain)
0 add_llvm_library(gtest_main
11 TestMain.cpp
2
3 LINK_LIBS
4 gtest
5 LLVMSupport # Depends on llvm::cl
26 )
3
4 # Depends on llvm::cl
5 target_link_libraries(gtest_main
6 gtest
7 LLVMSupport
8 )