diff options
| author | Alp Toker <alp@nuanti.com> | 2014-06-01 02:02:23 +0000 |
|---|---|---|
| committer | Alp Toker <alp@nuanti.com> | 2014-06-01 02:02:23 +0000 |
| commit | 1a58ff2424e3de195ff68536242bab60587e2a69 (patch) | |
| tree | 933bb86285fa3b3af6bafcb821475e6cffbc9222 /clang | |
| parent | da0c7933cfce8fac716f378bd50cb8236a58cae0 (diff) | |
| download | bcm5719-llvm-1a58ff2424e3de195ff68536242bab60587e2a69.tar.gz bcm5719-llvm-1a58ff2424e3de195ff68536242bab60587e2a69.zip | |
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
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index 66a8cab49a7..fe80df45649 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 ) |

