From 42708651517117d4a6695c6c77589b24e4ac23b4 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209983 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 ) -- 2.40.0