summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-12-02 11:31:19 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-12-02 11:31:19 +0000
commit66daa0e0672e72de42613c64810d007cc7593b88 (patch)
tree50a285bcf7ed453e40438583c085ff271874e014 /cmake
parentf19c6f576367a368cf729cd0019d16d691163d72 (diff)
downloadllvm-66daa0e0672e72de42613c64810d007cc7593b88.tar.gz
llvm-66daa0e0672e72de42613c64810d007cc7593b88.tar.bz2
llvm-66daa0e0672e72de42613c64810d007cc7593b88.tar.xz
[CMake] add_lit_target: Tests should be excluded from "Build Solution".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 34e40172c9..639c86f51e 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -341,6 +341,9 @@ function(add_lit_target target comment)
COMMAND cmake -E echo "${target} does nothing, no tools built.")
message(STATUS "${target} does nothing.")
endif()
+
+ # Tests should be excluded from "Build Solution".
+ set_target_properties(${target} PROPERTIES EXCLUDE_FROM_DEFAULT_BUILD ON)
endfunction()
# A function to add a set of lit test suites to be driven through 'check-*' targets.