[llvm] r201079 - [CMake] Add dependencies to gtest.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Feb 10 03:27:41 PST 2014
Author: chapuni
Date: Mon Feb 10 05:27:41 2014
New Revision: 201079
URL: http://llvm.org/viewvc/llvm-project?rev=201079&view=rev
Log:
[CMake] Add dependencies to gtest.
Modified:
llvm/trunk/utils/unittest/CMakeLists.txt
llvm/trunk/utils/unittest/UnitTestMain/CMakeLists.txt
Modified: llvm/trunk/utils/unittest/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/CMakeLists.txt?rev=201079&r1=201078&r2=201079&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/CMakeLists.txt (original)
+++ llvm/trunk/utils/unittest/CMakeLists.txt Mon Feb 10 05:27:41 2014
@@ -42,4 +42,9 @@ add_llvm_library(gtest
googletest/src/gtest-all.cc
)
+# Depends on llvm::raw_ostream
+target_link_libraries(gtest
+ LLVMSupport
+ )
+
add_subdirectory(UnitTestMain)
Modified: llvm/trunk/utils/unittest/UnitTestMain/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/unittest/UnitTestMain/CMakeLists.txt?rev=201079&r1=201078&r2=201079&view=diff
==============================================================================
--- llvm/trunk/utils/unittest/UnitTestMain/CMakeLists.txt (original)
+++ llvm/trunk/utils/unittest/UnitTestMain/CMakeLists.txt Mon Feb 10 05:27:41 2014
@@ -1,3 +1,9 @@
add_llvm_library(gtest_main
TestMain.cpp
)
+
+# Depends on llvm::cl
+target_link_libraries(gtest_main
+ gtest
+ LLVMSupport
+ )
More information about the llvm-commits
mailing list