diff options
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 ) |

