More correct fix for CMake breakage I was seeing, my buildbots use

LLVM_INCLUDE_TESTS:=OFF, which may no longer be necessary for all I know.

llvm-svn: 125985
This commit is contained in:
Daniel Dunbar 2011-02-18 22:55:32 +00:00
parent b7ae3ccb84
commit 5423b497ab
2 changed files with 3 additions and 1 deletions

View File

@ -215,7 +215,9 @@ add_subdirectory(tools)
add_subdirectory(runtime)
# TODO: docs.
if( LLVM_INCLUDE_TESTS )
add_subdirectory(test)
endif()
# FIXME: unittests require gtest.
if( NOT CLANG_BUILT_STANDALONE )

View File

@ -113,7 +113,7 @@ if(PYTHONINTERP_FOUND)
${LLVM_BINARY_DIR}/test
${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Running Clang and LLVM regression tests")
add_dependencies(check-all clang-test.deps)
add_dependencies(check-all check.deps clang-test.deps)
add_dependencies(clang-test.deps
ClangUnitTests
llvm-dis opt