diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5e12d04baa..11525fb6c2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -121,7 +121,10 @@ if(PYTHONINTERP_FOUND) ${LLVM_BINARY_DIR}/test ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Running Clang and LLVM regression tests") - add_dependencies(check-all check.deps clang-test.deps) + add_dependencies(check-all clang-test.deps) + if ( LLVM_INCLUDE_TESTS ) + add_dependencies(check-all check.deps) + endif ( LLVM_INCLUDE_TESTS ) add_dependencies(clang-test.deps ClangUnitTests llvm-dis opt