From 02bba191ed322e0c76c2b257e458deaed97da664 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 25 Feb 2011 00:43:05 +0000 Subject: [PATCH] CMake target check.deps only exists when LLVM_INCLUDE_TESTS git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126460 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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