From: NAKAMURA Takumi Date: Wed, 10 Oct 2012 13:33:00 +0000 (+0000) Subject: [CMake] check-all: Don't include check-llvm into check-all without LLVM_BUILD_TOOLS. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=98f01bf34be636b90125f5829f2a5451acb36e52;p=oota-llvm.git [CMake] check-all: Don't include check-llvm into check-all without LLVM_BUILD_TOOLS. FIXME: Would you like to run llvm/unittests w/o LLVM_BUILD_TESTS regardless of LLVM_BUILD_TOOLS? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165619 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b9b223713f2..bc226ca2283 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -7,6 +7,11 @@ configure_lit_site_cfg( ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg ) +# Don't include check-llvm into check-all without LLVM_BUILD_TOOLS. +if(NOT LLVM_BUILD_TOOLS) + set(EXCLUDE_FROM_ALL ON) +endif() + add_lit_testsuite(check-llvm "Running the LLVM regression tests" ${CMAKE_CURRENT_BINARY_DIR} PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg