From 1a58ff2424e3de195ff68536242bab60587e2a69 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sun, 1 Jun 2014 02:02:23 +0000 Subject: [PATCH] Don't add examples to the check-clang dependencies unless requested The tests were correctly getting skipped but the targets still mistakenly got built. llvm-svn: 209983 --- clang/test/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index 66a8cab..fe80df4 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -29,10 +29,16 @@ list(APPEND CLANG_TEST_DEPS c-index-test diagtool arcmt-test c-arcmt-test clang-check clang-format clang-tblgen - clang-interpreter - PrintFunctionNames - SampleAnalyzerPlugin ) + +if (ENABLE_CLANG_EXAMPLES) + list(APPEND CLANG_TEST_DEPS + clang-interpreter + PrintFunctionNames + SampleAnalyzerPlugin + ) +endif () + set(CLANG_TEST_PARAMS clang_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg ) -- 2.7.4