[CMake] add_lit_target: Tests should be excluded from "Build Solution".
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 2 Dec 2013 11:31:19 +0000 (11:31 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 2 Dec 2013 11:31:19 +0000 (11:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196093 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index 34e40172c96a1715c0fba765eb820b76ee8f7661..639c86f51e3aebaf85699afe832ab172316b0ce6 100644 (file)
@@ -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.