[clang-tools-extra] r249048 - [CMake] Don't include the test directories if CLANG_INCLUDE_TESTS is Off
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 1 11:16:56 PDT 2015
Author: cbieneman
Date: Thu Oct 1 13:16:56 2015
New Revision: 249048
URL: http://llvm.org/viewvc/llvm-project?rev=249048&view=rev
Log:
[CMake] Don't include the test directories if CLANG_INCLUDE_TESTS is Off
This matches Clang's behavior.
Modified:
clang-tools-extra/trunk/CMakeLists.txt
Modified: clang-tools-extra/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/CMakeLists.txt?rev=249048&r1=249047&r2=249048&view=diff
==============================================================================
--- clang-tools-extra/trunk/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/CMakeLists.txt Thu Oct 1 13:16:56 2015
@@ -12,7 +12,7 @@ add_subdirectory(tool-template)
# Add the common testsuite after all the tools.
# TODO: Support tests with more granularity when features are off?
-if(CLANG_ENABLE_STATIC_ANALYZER)
+if(CLANG_ENABLE_STATIC_ANALYZER AND CLANG_ENABLE_TESTS)
add_subdirectory(test)
add_subdirectory(unittests)
endif()
More information about the cfe-commits
mailing list