summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CompileFeatures
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-22 15:34:12 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-22 15:36:35 (GMT)
commitb341799e53e468a02bca78e3270e60ddccf8b4f3 (patch)
treedd551c164e2a2e09f113abe05decee5811803dec /Tests/RunCMake/CompileFeatures
parent852242b60d09d505ea59dc4eaccc149df87ce7fc (diff)
downloadCMake-b341799e53e468a02bca78e3270e60ddccf8b4f3.zip
CMake-b341799e53e468a02bca78e3270e60ddccf8b4f3.tar.gz
CMake-b341799e53e468a02bca78e3270e60ddccf8b4f3.tar.bz2
Tests: Fix RunCMake.CompileFeatures test NonValidTarget2 case
Mark the generated source file with the GENERATED property explicitly since it is not marked automatically as the output of any custom command. Mark both the 0 and 1 variants so it works no matter the outcome of the generator expression.
Diffstat (limited to 'Tests/RunCMake/CompileFeatures')
-rw-r--r--Tests/RunCMake/CompileFeatures/NonValidTarget2.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/CompileFeatures/NonValidTarget2.cmake b/Tests/RunCMake/CompileFeatures/NonValidTarget2.cmake
index eb84692..c41bf57 100644
--- a/Tests/RunCMake/CompileFeatures/NonValidTarget2.cmake
+++ b/Tests/RunCMake/CompileFeatures/NonValidTarget2.cmake
@@ -4,5 +4,7 @@ set(genexvar $<COMPILE_FEATURES:cxx_final>)
add_custom_target(copy_target
COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp" "${CMAKE_CURRENT_BINARY_DIR}/copied_file${genexvar}.txt"
)
+set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/copied_file0.cpp" PROPERTY GENERATED 1)
+set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/copied_file1.cpp" PROPERTY GENERATED 1)
add_library(empty "${CMAKE_CURRENT_BINARY_DIR}/copied_file${genexvar}.cpp")