aboutsummaryrefslogtreecommitdiff
path: root/clang/CMakeLists.txt
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-08-20 07:09:54 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-08-20 07:09:54 +0000
commit23a3567bf1304b76ea3db838d068c2789cc10666 (patch)
treec316b4d912cd2c5fe8e8721dbca4cd96c5f0e50f /clang/CMakeLists.txt
parent794315b65a3dbcbf32d757ec4d7187291b620571 (diff)
downloadllvm-23a3567bf1304b76ea3db838d068c2789cc10666.zip
llvm-23a3567bf1304b76ea3db838d068c2789cc10666.tar.gz
llvm-23a3567bf1304b76ea3db838d068c2789cc10666.tar.bz2
[autotools->cmake] Move add_subdirectory(test) inside CLANG_INCLUDE_TESTS to match the behavior of the LLVM where LLVM_INCLUDE_TESTS controls whether tests is included.
llvm-svn: 188760
Diffstat (limited to 'clang/CMakeLists.txt')
-rw-r--r--clang/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 54ec745..e6863b2 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -320,9 +320,9 @@ option(CLANG_INCLUDE_TESTS
${LLVM_INCLUDE_TESTS})
# TODO: docs.
-add_subdirectory(test)
if( CLANG_INCLUDE_TESTS )
+ add_subdirectory(test)
add_subdirectory(unittests)
endif()