diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:25:25 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2010-09-25 20:25:25 +0000 |
commit | 066de857f813991cb8985c7b10e130b32c878bd6 (patch) | |
tree | 92207a1868247905d941699eabf4159ba6f6a552 /utils/unittest | |
parent | 207f8f688b0d530ebe4542ae0db599a6463b670b (diff) |
Reverting "CMake: Don't include tools, unittets, or examples as
available targets unless LLVM_INCLUDE_X is ON. LLVM_BUILD_X implies
LLVM_INCLUDE_X"
It breaks the configuration phase when cmake is invoked without
parameters, it is too complex for the purpose and introduces an
incovenience for the user (as both LLVM_BUILD_X and LLVM_INCLUDE_X
must set to OFF for not including X on the build)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r-- | utils/unittest/CMakeLists.txt | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/utils/unittest/CMakeLists.txt b/utils/unittest/CMakeLists.txt index 99741c8f05..7068546301 100644 --- a/utils/unittest/CMakeLists.txt +++ b/utils/unittest/CMakeLists.txt @@ -20,17 +20,15 @@ if(WIN32) add_definitions(-DGTEST_OS_WINDOWS=1) endif() -if (LLVM_INCLUDE_TESTS OR LLVM_BUILD_TESTS) - add_llvm_library(gtest - googletest/gtest.cc - googletest/gtest-death-test.cc - googletest/gtest-filepath.cc - googletest/gtest-port.cc - googletest/gtest-test-part.cc - googletest/gtest-typed-test.cc - ) +add_llvm_library(gtest + googletest/gtest.cc + googletest/gtest-death-test.cc + googletest/gtest-filepath.cc + googletest/gtest-port.cc + googletest/gtest-test-part.cc + googletest/gtest-typed-test.cc + ) - add_llvm_library(gtest_main - UnitTestMain/TestMain.cpp - ) -endif() +add_llvm_library(gtest_main + UnitTestMain/TestMain.cpp + ) |