]> granicus.if.org Git - clang/commitdiff
Don't add examples to the check-clang dependencies unless requested
authorAlp Toker <alp@nuanti.com>
Sun, 1 Jun 2014 02:02:23 +0000 (02:02 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 1 Jun 2014 02:02:23 +0000 (02:02 +0000)
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

index 66a8cab49a79ecb744345e6b70a72f1e896b5e8f..fe80df456490584071e0bedd6a0680d0661dc03e 100644 (file)
@@ -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
   )