From: Alp Toker Date: Sun, 1 Jun 2014 02:02:23 +0000 (+0000) Subject: Don't add examples to the check-clang dependencies unless requested X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42708651517117d4a6695c6c77589b24e4ac23b4;p=clang Don't add examples to the check-clang dependencies unless requested The tests were correctly getting skipped but the targets still mistakenly got built. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209983 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 66a8cab49a..fe80df4564 100644 --- a/test/CMakeLists.txt +++ b/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 )