summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/CMakeLists.txt b/clang-tools-extra/CMakeLists.txt
index 428ed80ce6c..6aa3060729b 100644
--- a/clang-tools-extra/CMakeLists.txt
+++ b/clang-tools-extra/CMakeLists.txt
@@ -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()
OpenPOWER on IntegriCloud