[llvm] r196093 - [CMake] add_lit_target: Tests should be excluded from "Build Solution".
NAKAMURA Takumi
geek4civic at gmail.com
Mon Dec 2 03:31:19 PST 2013
Author: chapuni
Date: Mon Dec 2 05:31:19 2013
New Revision: 196093
URL: http://llvm.org/viewvc/llvm-project?rev=196093&view=rev
Log:
[CMake] add_lit_target: Tests should be excluded from "Build Solution".
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=196093&r1=196092&r2=196093&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Dec 2 05:31:19 2013
@@ -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.
More information about the llvm-commits
mailing list