diff options
author | Brad King <brad.king@kitware.com> | 2020-11-30 17:38:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-11-30 17:38:17 (GMT) |
commit | 0173cdcc012945901190e883283adfbbba61f491 (patch) | |
tree | f7c17e87cee8969a68b19fad20575be03276d99e /Tests | |
parent | cf93438ae2e92bbbc35a64543c08e06706a2942c (diff) | |
parent | 573d51201acb5d922e96e496b25d00092953ffd5 (diff) | |
download | CMake-0173cdcc012945901190e883283adfbbba61f491.zip CMake-0173cdcc012945901190e883283adfbbba61f491.tar.gz CMake-0173cdcc012945901190e883283adfbbba61f491.tar.bz2 |
Merge topic 'make-GENERATED-visible-from-any-scope'
573d51201a GENERATED prop: Set CMP0118 to NEW for some (unrelated) tests
6624b65b3f GENERATED prop: Add implementation for policy CMP0118 being set to NEW
b14fe704f8 GENERATED prop: Simplify determining the language of a source file
ca4ce458a3 GENERATED prop: Check CMP0118 policy and warn in certain situations
0eb30f175e GENERATED prop: Introducing policy CMP0118 and its documentation
78c8d95605 GENERATED prop: Add some tests before introducing changes with CMP0118
e01527619f Simplify code by calling a function directly instead of duplicating it
75cb8615e9 Fix typo in function name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5308
Diffstat (limited to 'Tests')
186 files changed, 5563 insertions, 2 deletions
diff --git a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake index 3d8eb73..ee5ed5b 100644 --- a/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake +++ b/Tests/RunCMake/CMP0026/LOCATION-and-TARGET_OBJECTS.cmake @@ -1,4 +1,4 @@ - +cmake_policy(SET CMP0118 NEW) enable_language(CXX) add_library(foo OBJECT empty.cpp) diff --git a/Tests/RunCMake/CMP0026/clear-cached-information.cmake b/Tests/RunCMake/CMP0026/clear-cached-information.cmake index dd2dd72..9916948 100644 --- a/Tests/RunCMake/CMP0026/clear-cached-information.cmake +++ b/Tests/RunCMake/CMP0026/clear-cached-information.cmake @@ -1,4 +1,4 @@ - +cmake_policy(SET CMP0118 NEW) enable_language(C) cmake_policy(SET CMP0026 OLD) diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Helper.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Helper.cmake new file mode 100644 index 0000000..b237b7f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Helper.cmake @@ -0,0 +1,14 @@ +macro(get_and_print_GENERATED_property filename) + get_property(prop SOURCE "${CMAKE_CURRENT_BINARY_DIR}/${filename}" PROPERTY GENERATED) + message(NOTICE "${filename}: # 1a # GENERATED = `${prop}`") + get_source_file_property(prop "${CMAKE_CURRENT_BINARY_DIR}/${filename}" GENERATED) + message(NOTICE "${filename}: # 1b # GENERATED = `${prop}`") + get_property(prop SOURCE "${filename}" PROPERTY GENERATED) + message(NOTICE "${filename}: # 2a # GENERATED = `${prop}`") + get_source_file_property(prop "${filename}" GENERATED) + message(NOTICE "${filename}: # 2b # GENERATED = `${prop}`") + get_property(prop SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/${filename}" PROPERTY GENERATED) + message(NOTICE "${filename}: # 3a # GENERATED = `${prop}`") + get_source_file_property(prop "${CMAKE_CURRENT_SOURCE_DIR}/${filename}" GENERATED) + message(NOTICE "${filename}: # 3b # GENERATED = `${prop}`") +endmacro() diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake new file mode 100644 index 0000000..fc4f5ec --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake @@ -0,0 +1,9 @@ +add_executable(executable) +target_sources(executable PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" +) + +get_property(prop SOURCE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + PROPERTY GENERATED) +message(NOTICE "prop: `${prop}`") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test10.cmake new file mode 100644 index 0000000..d0b2044 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test10.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test10) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test11.cmake new file mode 100644 index 0000000..f21a7b1 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test11.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test11) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test12.cmake new file mode 100644 index 0000000..280edca --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test12.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_command(TARGET executable0 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_command(TARGET executable1 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_command(TARGET executable2 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_command(TARGET executable3 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test12) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test13.cmake new file mode 100644 index 0000000..e1dfa11 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test13.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_command(TARGET executable0 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_command(TARGET executable1 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_command(TARGET executable2 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_command(TARGET executable3 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test13) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test14.cmake new file mode 100644 index 0000000..5222353 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test14.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_target(executable0_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_target(executable1_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_target(executable2_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_target(executable3_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test14) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test15.cmake new file mode 100644 index 0000000..c2c55af --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test15.cmake @@ -0,0 +1,65 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +# The sources of executable0 will not be modified by set_property! +add_executable(executable0) +target_sources(executable0 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +# The sources of executable[1-6] will (tried to) be modified by set_property! +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +add_custom_target(executable0_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source0.cpp" +) +add_custom_target(executable1_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_custom_target(executable2_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_custom_target(executable3_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) + +add_subdirectory(subdir-Common-Test15) + +get_and_print_GENERATED_property("Generated_source0.cpp") +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake new file mode 100644 index 0000000..feb66e3 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake @@ -0,0 +1,12 @@ +add_executable(executable) +target_sources(executable PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" +) + +set_property(SOURCE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + PROPERTY GENERATED "1") +get_property(prop SOURCE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + PROPERTY GENERATED) +message(NOTICE "prop: `${prop}`") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test3.cmake new file mode 100644 index 0000000..b12834d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test3.cmake @@ -0,0 +1,66 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "Generated_with_relative_path1.cpp" + "Generated_with_relative_path2.cpp" + "Generated_with_relative_path3.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path1.cpp") + +set_property(SOURCE "Generated_with_full_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_relative_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path1.cpp") + +set_property(SOURCE "Generated_with_relative_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path2.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_relative_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path1.cpp") + +set_property(SOURCE "Generated_with_full_source_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path3.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test3b.cmake new file mode 100644 index 0000000..3e4a280 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test3b.cmake @@ -0,0 +1,66 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path1.cpp") + +set_property(SOURCE "Generated_with_full_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_relative_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path1.cpp") + +set_property(SOURCE "Generated_with_relative_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path2.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_relative_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_relative_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path1.cpp") + +set_property(SOURCE "Generated_with_full_source_path2.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.cpp" + PROPERTY GENERATED "1") +get_and_print_GENERATED_property("Generated_with_full_source_path3.cpp") + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "Generated_with_relative_path1.cpp" + "Generated_with_relative_path2.cpp" + "Generated_with_relative_path3.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.cpp" +) diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test4.cmake new file mode 100644 index 0000000..81f1254 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test4.cmake @@ -0,0 +1,66 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "Generated_with_relative_path1.cpp" + "Generated_with_relative_path2.cpp" + "Generated_with_relative_path3.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path1.cpp") + +set_property(SOURCE "Generated_with_full_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_relative_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path1.cpp") + +set_property(SOURCE "Generated_with_relative_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path2.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_relative_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path1.cpp") + +set_property(SOURCE "Generated_with_full_source_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path3.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test4b.cmake new file mode 100644 index 0000000..439f456 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test4b.cmake @@ -0,0 +1,66 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path1.cpp") + +set_property(SOURCE "Generated_with_full_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_relative_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path1.cpp") + +set_property(SOURCE "Generated_with_relative_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path2.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_relative_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_relative_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path1.cpp") + +set_property(SOURCE "Generated_with_full_source_path2.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.cpp" + PROPERTY GENERATED "0") +get_and_print_GENERATED_property("Generated_with_full_source_path3.cpp") + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "Generated_with_relative_path1.cpp" + "Generated_with_relative_path2.cpp" + "Generated_with_relative_path3.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.cpp" +) diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test5.cmake new file mode 100644 index 0000000..1bf9aaa --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test5.cmake @@ -0,0 +1,78 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "Generated_with_relative_path1.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "Generated_with_relative_path2.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "Generated_with_relative_path3.cpp" +) +add_executable(executable7) +target_sources(executable7 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path1.cpp" +) +add_executable(executable8) +target_sources(executable8 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" +) +add_executable(executable9) +target_sources(executable9 PRIVATE + "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path3.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path1.cpp" + PROPERTY GENERATED "tRue") +get_and_print_GENERATED_property("Generated_with_full_path1.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path2.cpp" + PROPERTY GENERATED "SomeVar-NOTFOUND") +get_and_print_GENERATED_property("Generated_with_full_path2.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_path3.cpp" + PROPERTY GENERATED "Junk-value") +get_and_print_GENERATED_property("Generated_with_full_path3.cpp") + + +set_property(SOURCE "Generated_with_relative_path1.cpp" + PROPERTY GENERATED "tRue") +get_and_print_GENERATED_property("Generated_with_relative_path1.cpp") + +set_property(SOURCE "Generated_with_relative_path2.cpp" + PROPERTY GENERATED "SomeVar-NOTFOUND") +get_and_print_GENERATED_property("Generated_with_relative_path2.cpp") + +set_property(SOURCE "Generated_with_relative_path3.cpp" + PROPERTY GENERATED "Junk-value") +get_and_print_GENERATED_property("Generated_with_relative_path3.cpp") + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_with_full_source_path1.cpp" + PROPERTY GENERATED "tRue") +get_and_print_GENERATED_property("Generated_with_full_source_path1.cpp") + +set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Generated_with_full_source_path2.cpp" + PROPERTY GENERATED "SomeVar-NOTFOUND") +get_and_print_GENERATED_property("Generated_with_full_source_path2.cpp") + +set_property(SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/"Generated_with_full_source_path3.cpp" + PROPERTY GENERATED "Junk-value") +get_and_print_GENERATED_property("Generated_with_full_source_path3.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test6.cmake new file mode 100644 index 0000000..7715e78 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test6.cmake @@ -0,0 +1,44 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + PROPERTY GENERATED "1") + +add_subdirectory(subdir-Common-Test6) + +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test7.cmake new file mode 100644 index 0000000..96bb590 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test7.cmake @@ -0,0 +1,44 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + PROPERTY GENERATED "1") + +add_subdirectory(subdir-Common-Test7) + +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test8.cmake new file mode 100644 index 0000000..2c87b65 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test8.cmake @@ -0,0 +1,50 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) + +add_subdirectory(subdir-Common-Test8) + +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test9.cmake new file mode 100644 index 0000000..e302f5c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test9.cmake @@ -0,0 +1,50 @@ +include(${CMAKE_CURRENT_LIST_DIR}/CMP0118-Common-Helper.cmake) + + +add_executable(executable1) +target_sources(executable1 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" +) +add_executable(executable2) +target_sources(executable2 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" +) +add_executable(executable3) +target_sources(executable3 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" +) +add_executable(executable4) +target_sources(executable4 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" +) +add_executable(executable5) +target_sources(executable5 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" +) +add_executable(executable6) +target_sources(executable6 PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" +) + + +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source1.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source2.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source3.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) + +add_subdirectory(subdir-Common-Test9) + +get_and_print_GENERATED_property("Generated_source1.cpp") +get_and_print_GENERATED_property("Generated_source2.cpp") +get_and_print_GENERATED_property("Generated_source3.cpp") +get_and_print_GENERATED_property("Generated_source4.cpp") +get_and_print_GENERATED_property("Generated_source5.cpp") +get_and_print_GENERATED_property("Generated_source6.cpp") diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-stderr.txt new file mode 100644 index 0000000..85ff65c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-stderr.txt @@ -0,0 +1,16 @@ +^prop: `0` +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test1-build/GeneratedMain\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable +Call Stack \(most recent call first\): + CMP0118-NEW-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1.cmake new file mode 100644 index 0000000..bbbee43 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test1.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test1.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-stderr.txt new file mode 100644 index 0000000..024d263 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test10-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-NEW-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10.cmake new file mode 100644 index 0000000..15a7178 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test10.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test10.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-stderr.txt new file mode 100644 index 0000000..7e660ad --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-stderr.txt @@ -0,0 +1,86 @@ +^(CMake Warning \(dev\) at subdir-Common-Test11/CMakeLists\.txt:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +(CMake Warning \(dev\) at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_subdirectory\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-NEW-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11.cmake new file mode 100644 index 0000000..cb87a86 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test11.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test11.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-stderr.txt new file mode 100644 index 0000000..404787c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12-stderr.txt @@ -0,0 +1,51 @@ +^CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12.cmake new file mode 100644 index 0000000..61bf977 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test12.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test12.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-stderr.txt new file mode 100644 index 0000000..92ac33e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13-stderr.txt @@ -0,0 +1,64 @@ +^CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +(CMake Warning \(dev\) at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +(CMake Warning \(dev\) at CMP0118-Common-Test13\.cmake:[0-9]+ \(add_subdirectory\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test13\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13.cmake new file mode 100644 index 0000000..569e4c6 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test13.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test13.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-stderr.txt new file mode 100644 index 0000000..cd14945 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test14-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-NEW-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14.cmake new file mode 100644 index 0000000..e7d8d77 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test14.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test14.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-stderr.txt new file mode 100644 index 0000000..6c66392 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-stderr.txt @@ -0,0 +1,86 @@ +^(CMake Warning \(dev\) at subdir-Common-Test15/CMakeLists\.txt:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +(CMake Warning \(dev\) at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_subdirectory\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-NEW-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15.cmake new file mode 100644 index 0000000..93513ae --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test15.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test15.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2-stderr.txt new file mode 100644 index 0000000..403ce5a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2-stderr.txt @@ -0,0 +1 @@ +^prop: `1`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2.cmake new file mode 100644 index 0000000..ee8233d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test2.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test2.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-stderr.txt new file mode 100644 index 0000000..4002989 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-NEW-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3.cmake new file mode 100644 index 0000000..b9533fd --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test3.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-stderr.txt new file mode 100644 index 0000000..21177bc --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-NEW-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b.cmake new file mode 100644 index 0000000..79631e7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test3b.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test3b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-stderr.txt new file mode 100644 index 0000000..42c19a5 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4-stderr.txt @@ -0,0 +1,173 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-NEW-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4.cmake new file mode 100644 index 0000000..8a7d35a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test4.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-stderr.txt new file mode 100644 index 0000000..58f8d89 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b-stderr.txt @@ -0,0 +1,173 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-NEW-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-NEW-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b.cmake new file mode 100644 index 0000000..c03a39d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test4b.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test4b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-stderr.txt new file mode 100644 index 0000000..0d26a57 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5-stderr.txt @@ -0,0 +1,180 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is set to NEW and the following non-boolean value given for + property 'GENERATED' is therefore not allowed: + + Junk-value + + Replace it with a boolean value! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is set to NEW and the following non-boolean value given for + property 'GENERATED' is therefore not allowed: + + Junk-value + + Replace it with a boolean value! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is set to NEW and the following non-boolean value given for + property 'GENERATED' is therefore not allowed: + + Junk-value + + Replace it with a boolean value! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-NEW-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[235-9] +Call Stack \(most recent call first\): + CMP0118-NEW-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5.cmake new file mode 100644 index 0000000..691f94a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test5.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test5.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-stderr.txt new file mode 100644 index 0000000..c3fdd96 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test6-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-NEW-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6.cmake new file mode 100644 index 0000000..09b87a5 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test6.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test6.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-stderr.txt new file mode 100644 index 0000000..4c2a2ae --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-stderr.txt @@ -0,0 +1,80 @@ +^(CMake Warning \(dev\) at subdir-Common-Test7/CMakeLists\.txt:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +(CMake Warning \(dev\) at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_subdirectory\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test7-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-NEW-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7.cmake new file mode 100644 index 0000000..ceb8beb --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test7.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test7.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-stderr.txt new file mode 100644 index 0000000..44f94d4 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test8-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-NEW-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8.cmake new file mode 100644 index 0000000..6878b94 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test8.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test8.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-result.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-stderr.txt new file mode 100644 index 0000000..53e1399 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-stderr.txt @@ -0,0 +1,80 @@ +^(CMake Warning \(dev\) at subdir-Common-Test9/CMakeLists\.txt:[0-9]+ \(set_property\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +(CMake Warning \(dev\) at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_subdirectory\): + Unsetting the 'GENERATED' property is not allowed under CMP0118! + +Call Stack \(most recent call first\): + CMP0118-NEW-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-NEW-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-NEW-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-NEW-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9.cmake new file mode 100644 index 0000000..00b05fd --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-NEW-Test9.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 NEW) +include(CMP0118-Common-Test9.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-stderr.txt new file mode 100644 index 0000000..491489d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-stderr.txt @@ -0,0 +1,16 @@ +^prop: `0` +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test1-build/GeneratedMain\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable +Call Stack \(most recent call first\): + CMP0118-OLD-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake new file mode 100644 index 0000000..c18dd25 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test1.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test1.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-stderr.txt new file mode 100644 index 0000000..12dd48f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test10-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-OLD-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake new file mode 100644 index 0000000..b96973f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test10.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test10.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-stderr.txt new file mode 100644 index 0000000..91db26a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-stderr.txt @@ -0,0 +1,73 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-OLD-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake new file mode 100644 index 0000000..d6ad7d2 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test11.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test11.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-stderr.txt new file mode 100644 index 0000000..404787c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12-stderr.txt @@ -0,0 +1,51 @@ +^CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake new file mode 100644 index 0000000..b87b03a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test12.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test12.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-stderr.txt new file mode 100644 index 0000000..07f2f10 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13-stderr.txt @@ -0,0 +1,51 @@ +^CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake new file mode 100644 index 0000000..17a135b --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test13.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test13.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-stderr.txt new file mode 100644 index 0000000..395637a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test14-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-OLD-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake new file mode 100644 index 0000000..0702291 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test14.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test14.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-stderr.txt new file mode 100644 index 0000000..d6799b4 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-stderr.txt @@ -0,0 +1,73 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-OLD-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake new file mode 100644 index 0000000..c330d4e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test15.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test15.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2-stderr.txt new file mode 100644 index 0000000..403ce5a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2-stderr.txt @@ -0,0 +1 @@ +^prop: `1`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake new file mode 100644 index 0000000..3ea8800 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test2.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test2.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-stderr.txt new file mode 100644 index 0000000..4764494 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-OLD-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake new file mode 100644 index 0000000..c8f5a0e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test3.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-stderr.txt new file mode 100644 index 0000000..33c4375 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-OLD-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake new file mode 100644 index 0000000..0b046b4 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test3b.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test3b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-stderr.txt new file mode 100644 index 0000000..1723ece --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4-stderr.txt @@ -0,0 +1,101 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-OLD-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake new file mode 100644 index 0000000..2f77397 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test4.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-stderr.txt new file mode 100644 index 0000000..b7b37e9 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b-stderr.txt @@ -0,0 +1,101 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-OLD-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-OLD-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake new file mode 100644 index 0000000..ce6726d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test4b.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test4b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-stderr.txt new file mode 100644 index 0000000..3ad00b7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5-stderr.txt @@ -0,0 +1,117 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-OLD-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[235-9] +Call Stack \(most recent call first\): + CMP0118-OLD-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake new file mode 100644 index 0000000..2de6d89 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test5.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test5.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-stderr.txt new file mode 100644 index 0000000..475c559 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test6-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-OLD-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake new file mode 100644 index 0000000..b571052 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test6.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test6.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-stderr.txt new file mode 100644 index 0000000..5f490ee --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-stderr.txt @@ -0,0 +1,83 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[2-6] +Call Stack \(most recent call first\): + CMP0118-OLD-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake new file mode 100644 index 0000000..551da23 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test7.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test7.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-stderr.txt new file mode 100644 index 0000000..bd82224 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test8-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-OLD-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake new file mode 100644 index 0000000..2d9e3d3 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test8.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test8.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-result.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt new file mode 100644 index 0000000..172e4eb --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt @@ -0,0 +1,67 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake new file mode 100644 index 0000000..53f73d9 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9.cmake @@ -0,0 +1,2 @@ +cmake_policy(SET CMP0118 OLD) +include(CMP0118-Common-Test9.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt new file mode 100644 index 0000000..bb19577 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-stderr.txt @@ -0,0 +1,16 @@ +^prop: `0` +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test1-build/GeneratedMain\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test1\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable +Call Stack \(most recent call first\): + CMP0118-WARN-Test1\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake new file mode 100644 index 0000000..3c82f8e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test1.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test1.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt new file mode 100644 index 0000000..f9ceb89 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test10-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test10\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test10\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake new file mode 100644 index 0000000..c639c40 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test10.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test10.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt new file mode 100644 index 0000000..0d4e924 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-stderr.txt @@ -0,0 +1,96 @@ +^((CMake Warning \(dev\) at subdir-Common-Test11/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test11-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test11\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test11\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake new file mode 100644 index 0000000..4c9735d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test11.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test11.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt new file mode 100644 index 0000000..404787c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12-stderr.txt @@ -0,0 +1,51 @@ +^CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test12/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake new file mode 100644 index 0000000..79fa00a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test12.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test12.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt new file mode 100644 index 0000000..cb31858 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13-stderr.txt @@ -0,0 +1,74 @@ +^CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +CMake Error at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(add_custom_command\): + TARGET 'executable[4-6]' was not created in this directory\. ++ +((CMake Warning \(dev\) at subdir-Common-Test13/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test13\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test13\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake new file mode 100644 index 0000000..27f71c7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test13.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test13.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt new file mode 100644 index 0000000..35f858c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-stderr.txt @@ -0,0 +1,57 @@ +^Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test14-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test14\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test14\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake new file mode 100644 index 0000000..056f0ad --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test14.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test14.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt new file mode 100644 index 0000000..0b0e608 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-stderr.txt @@ -0,0 +1,96 @@ +^((CMake Warning \(dev\) at subdir-Common-Test15/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source0\.cpp: # 1a # GENERATED = `1` +Generated_source0\.cpp: # 1b # GENERATED = `1` +Generated_source0\.cpp: # 2a # GENERATED = `1` +Generated_source0\.cpp: # 2b # GENERATED = `1` +Generated_source0\.cpp: # 3a # GENERATED = `0` +Generated_source0\.cpp: # 3b # GENERATED = `0` +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test15-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test15\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test15\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake new file mode 100644 index 0000000..acc8bf6 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test15.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test15.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt new file mode 100644 index 0000000..403ce5a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2-stderr.txt @@ -0,0 +1 @@ +^prop: `1`$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake new file mode 100644 index 0000000..5a67974 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test2.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test2.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt new file mode 100644 index 0000000..ca08216 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test3\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake new file mode 100644 index 0000000..7cdfacb --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test3.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt new file mode 100644 index 0000000..ee4b71e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b-stderr.txt @@ -0,0 +1,93 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `1` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test3b-build/Generated_with_full_path3\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test3b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[13-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test3b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake new file mode 100644 index 0000000..6dfc16a --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test3b.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test3b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt new file mode 100644 index 0000000..5e8ecf5 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4-stderr.txt @@ -0,0 +1,218 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test4\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake new file mode 100644 index 0000000..9d432a4 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test4.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt new file mode 100644 index 0000000..7a685d1 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b-stderr.txt @@ -0,0 +1,218 @@ +^CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test4b\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test4b-build/Generated_with_full_path1\.cpp|CMP0118-WARN-Test4b-build/Generated_with_relative_path1\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test4b\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[1-5] +Call Stack \(most recent call first\): + CMP0118-WARN-Test4b\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake new file mode 100644 index 0000000..2e2c2bd --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test4b.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test4b.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt new file mode 100644 index 0000000..c258ba0 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5-stderr.txt @@ -0,0 +1,219 @@ +^Generated_with_full_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_relative_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_relative_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_relative_path3\.cpp: # 3b # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 1a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 1b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2a # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 2b # GENERATED = `1` +Generated_with_full_source_path1\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path1\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path2\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path2\.cpp: # 3b # GENERATED = `0` +CMake Warning \(dev\) at CMP0118-Common-Test5\.cmake:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Attempt to set property 'GENERATED' with the following non-boolean value + \(which will be interpreted as "0"\): + + Junk-value + + That exact value will not be retrievable\. A value of "0" will be returned + instead\. + + This will be an error under policy CMP0118\. + +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++ +Generated_with_full_source_path3\.cpp: # 1a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 1b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 2b # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3a # GENERATED = `0` +Generated_with_full_source_path3\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/(Generated_with_full_source_path[1-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_relative_path[2-3]\.cpp|CMP0118-WARN-Test5-build/Generated_with_full_path[2-3]\.cpp) +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test5\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[235-9] +Call Stack \(most recent call first\): + CMP0118-WARN-Test5\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake new file mode 100644 index 0000000..87e965e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test5.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test5.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt new file mode 100644 index 0000000..25de751 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test6-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test6\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test6\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake new file mode 100644 index 0000000..6f1edbc --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test6.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test6.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt new file mode 100644 index 0000000..1d9ac49 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-stderr.txt @@ -0,0 +1,106 @@ +^((CMake Warning \(dev\) at subdir-Common-Test7/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `1` +Generated_source1\.cpp: # 1b # GENERATED = `1` +Generated_source1\.cpp: # 2a # GENERATED = `1` +Generated_source1\.cpp: # 2b # GENERATED = `1` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test7-build/Generated_source[2-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test7\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[2-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test7\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake new file mode 100644 index 0000000..86af20d --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test7.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test7.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt new file mode 100644 index 0000000..5aaf6c6 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-stderr.txt @@ -0,0 +1,51 @@ +^Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `1` +Generated_source2\.cpp: # 1b # GENERATED = `1` +Generated_source2\.cpp: # 2a # GENERATED = `1` +Generated_source2\.cpp: # 2b # GENERATED = `1` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `1` +Generated_source3\.cpp: # 1b # GENERATED = `1` +Generated_source3\.cpp: # 2a # GENERATED = `1` +Generated_source3\.cpp: # 2b # GENERATED = `1` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `1` +Generated_source5\.cpp: # 1b # GENERATED = `1` +Generated_source5\.cpp: # 2a # GENERATED = `1` +Generated_source5\.cpp: # 2b # GENERATED = `1` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `1` +Generated_source6\.cpp: # 1b # GENERATED = `1` +Generated_source6\.cpp: # 2a # GENERATED = `1` +Generated_source6\.cpp: # 2b # GENERATED = `1` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test8-build/Generated_source4\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test8\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable4 +Call Stack \(most recent call first\): + CMP0118-WARN-Test8\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake new file mode 100644 index 0000000..6a0bb4c --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test8.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test8.cmake) diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt new file mode 100644 index 0000000..a4edec0 --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-stderr.txt @@ -0,0 +1,90 @@ +^((CMake Warning \(dev\) at subdir-Common-Test9/CMakeLists\.txt:[0-9]+ \(set_property\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+ +(CMake Warning \(dev\) at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_subdirectory\): + Policy CMP0118 is not set: The GENERATED source file property is now + visible in all directories\. Run "cmake --help-policy CMP0118" for policy + details\. Use the cmake_policy command to set the policy and suppress this + warning\. + + Unsetting property 'GENERATED' will not be allowed under policy CMP0118! + +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) +This warning is for project developers\. Use -Wno-dev to suppress it\. ++)+)+ +Generated_source1\.cpp: # 1a # GENERATED = `0` +Generated_source1\.cpp: # 1b # GENERATED = `0` +Generated_source1\.cpp: # 2a # GENERATED = `0` +Generated_source1\.cpp: # 2b # GENERATED = `0` +Generated_source1\.cpp: # 3a # GENERATED = `0` +Generated_source1\.cpp: # 3b # GENERATED = `0` +Generated_source2\.cpp: # 1a # GENERATED = `0` +Generated_source2\.cpp: # 1b # GENERATED = `0` +Generated_source2\.cpp: # 2a # GENERATED = `0` +Generated_source2\.cpp: # 2b # GENERATED = `0` +Generated_source2\.cpp: # 3a # GENERATED = `0` +Generated_source2\.cpp: # 3b # GENERATED = `0` +Generated_source3\.cpp: # 1a # GENERATED = `0` +Generated_source3\.cpp: # 1b # GENERATED = `0` +Generated_source3\.cpp: # 2a # GENERATED = `0` +Generated_source3\.cpp: # 2b # GENERATED = `0` +Generated_source3\.cpp: # 3a # GENERATED = `0` +Generated_source3\.cpp: # 3b # GENERATED = `0` +Generated_source4\.cpp: # 1a # GENERATED = `0` +Generated_source4\.cpp: # 1b # GENERATED = `0` +Generated_source4\.cpp: # 2a # GENERATED = `0` +Generated_source4\.cpp: # 2b # GENERATED = `0` +Generated_source4\.cpp: # 3a # GENERATED = `0` +Generated_source4\.cpp: # 3b # GENERATED = `0` +Generated_source5\.cpp: # 1a # GENERATED = `0` +Generated_source5\.cpp: # 1b # GENERATED = `0` +Generated_source5\.cpp: # 2a # GENERATED = `0` +Generated_source5\.cpp: # 2b # GENERATED = `0` +Generated_source5\.cpp: # 3a # GENERATED = `0` +Generated_source5\.cpp: # 3b # GENERATED = `0` +Generated_source6\.cpp: # 1a # GENERATED = `0` +Generated_source6\.cpp: # 1b # GENERATED = `0` +Generated_source6\.cpp: # 2a # GENERATED = `0` +Generated_source6\.cpp: # 2b # GENERATED = `0` +Generated_source6\.cpp: # 3a # GENERATED = `0` +Generated_source6\.cpp: # 3b # GENERATED = `0` +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + Cannot find source file: + +[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-WARN-Test9-build/Generated_source[4-6]\.cpp +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++ +(CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_executable\): + No SOURCES given to target: executable[4-6] +Call Stack \(most recent call first\): + CMP0118-WARN-Test9\.cmake:[0-9]+ \(include\) + CMakeLists\.txt:[0-9]+ \(include\) ++)+ +CMake Generate step failed\. Build files cannot be regenerated correctly\.$ diff --git a/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake new file mode 100644 index 0000000..c48c64e --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMP0118-WARN-Test9.cmake @@ -0,0 +1 @@ +include(CMP0118-Common-Test9.cmake) diff --git a/Tests/RunCMake/CMP0118/CMakeLists.txt b/Tests/RunCMake/CMP0118/CMakeLists.txt new file mode 100644 index 0000000..3e06bbc --- /dev/null +++ b/Tests/RunCMake/CMP0118/CMakeLists.txt @@ -0,0 +1,4 @@ +cmake_minimum_required(VERSION 3.19) +cmake_policy(SET CMP0115 NEW) +project(${RunCMake_TEST} CXX) +include(${RunCMake_TEST}.cmake) diff --git a/Tests/RunCMake/CMP0118/RunCMakeTest.cmake b/Tests/RunCMake/CMP0118/RunCMakeTest.cmake new file mode 100644 index 0000000..72064bd --- /dev/null +++ b/Tests/RunCMake/CMP0118/RunCMakeTest.cmake @@ -0,0 +1,55 @@ +include(RunCMake) + +run_cmake(CMP0118-OLD-Test1) +run_cmake(CMP0118-OLD-Test2) +run_cmake(CMP0118-OLD-Test3) +run_cmake(CMP0118-OLD-Test3b) +run_cmake(CMP0118-OLD-Test4) +run_cmake(CMP0118-OLD-Test4b) +run_cmake(CMP0118-OLD-Test5) +run_cmake(CMP0118-OLD-Test6) +run_cmake(CMP0118-OLD-Test7) +run_cmake(CMP0118-OLD-Test8) +run_cmake(CMP0118-OLD-Test9) +run_cmake(CMP0118-OLD-Test10) +run_cmake(CMP0118-OLD-Test11) +run_cmake(CMP0118-OLD-Test12) +run_cmake(CMP0118-OLD-Test13) +run_cmake(CMP0118-OLD-Test14) +run_cmake(CMP0118-OLD-Test15) + +run_cmake(CMP0118-WARN-Test1) +run_cmake(CMP0118-WARN-Test2) +run_cmake(CMP0118-WARN-Test3) +run_cmake(CMP0118-WARN-Test3b) +run_cmake(CMP0118-WARN-Test4) +run_cmake(CMP0118-WARN-Test4b) +run_cmake(CMP0118-WARN-Test5) +run_cmake(CMP0118-WARN-Test6) +run_cmake(CMP0118-WARN-Test7) +run_cmake(CMP0118-WARN-Test8) +run_cmake(CMP0118-WARN-Test9) +run_cmake(CMP0118-WARN-Test10) +run_cmake(CMP0118-WARN-Test11) +run_cmake(CMP0118-WARN-Test12) +run_cmake(CMP0118-WARN-Test13) +run_cmake(CMP0118-WARN-Test14) +run_cmake(CMP0118-WARN-Test15) + +run_cmake(CMP0118-NEW-Test1) +run_cmake(CMP0118-NEW-Test2) +run_cmake(CMP0118-NEW-Test3) +run_cmake(CMP0118-NEW-Test3b) +run_cmake(CMP0118-NEW-Test4) +run_cmake(CMP0118-NEW-Test4b) +run_cmake(CMP0118-NEW-Test5) +run_cmake(CMP0118-NEW-Test6) +run_cmake(CMP0118-NEW-Test7) +run_cmake(CMP0118-NEW-Test8) +run_cmake(CMP0118-NEW-Test9) +run_cmake(CMP0118-NEW-Test10) +run_cmake(CMP0118-NEW-Test11) +run_cmake(CMP0118-NEW-Test12) +run_cmake(CMP0118-NEW-Test13) +run_cmake(CMP0118-NEW-Test14) +run_cmake(CMP0118-NEW-Test15) diff --git a/Tests/RunCMake/CMP0118/source.cpp.in b/Tests/RunCMake/CMP0118/source.cpp.in new file mode 100644 index 0000000..678cd7a --- /dev/null +++ b/Tests/RunCMake/CMP0118/source.cpp.in @@ -0,0 +1,5 @@ +int func(); +int main() +{ + return func(); +} diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test10/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test10/CMakeLists.txt new file mode 100644 index 0000000..fbd42ac --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test10/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test11/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test11/CMakeLists.txt new file mode 100644 index 0000000..fc72dd7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test11/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_command( + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test12/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test12/CMakeLists.txt new file mode 100644 index 0000000..034f69c --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test12/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_command(TARGET executable4 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_command(TARGET executable5 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_command(TARGET executable6 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test13/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test13/CMakeLists.txt new file mode 100644 index 0000000..a0a0808 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test13/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_command(TARGET executable4 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_command(TARGET executable5 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_command(TARGET executable6 PRE_BUILD + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + BYPRODUCT "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test14/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test14/CMakeLists.txt new file mode 100644 index 0000000..5d47115 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test14/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_target(executable4_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_target(executable5_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_target(executable6_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test15/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test15/CMakeLists.txt new file mode 100644 index 0000000..0ad62f7 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test15/CMakeLists.txt @@ -0,0 +1,33 @@ +add_custom_target(executable4_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" +) +add_custom_target(executable5_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" +) +add_custom_target(executable6_source_generator ALL + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_SOURCE_DIR}/Source.cpp.in" + "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test6/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test6/CMakeLists.txt new file mode 100644 index 0000000..d35a030 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test6/CMakeLists.txt @@ -0,0 +1,16 @@ +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test7/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test7/CMakeLists.txt new file mode 100644 index 0000000..2f28178 --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test7/CMakeLists.txt @@ -0,0 +1,16 @@ +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test8/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test8/CMakeLists.txt new file mode 100644 index 0000000..bcc1ebe --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test8/CMakeLists.txt @@ -0,0 +1,30 @@ +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "1") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "1") diff --git a/Tests/RunCMake/CMP0118/subdir-Common-Test9/CMakeLists.txt b/Tests/RunCMake/CMP0118/subdir-Common-Test9/CMakeLists.txt new file mode 100644 index 0000000..a50d02a --- /dev/null +++ b/Tests/RunCMake/CMP0118/subdir-Common-Test9/CMakeLists.txt @@ -0,0 +1,30 @@ +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source4.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source5.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/Generated_source6.cpp" + CONTENT "int func();\nint main(){ return func(); }" +) + + +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source1.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source2.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source3.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source4.cpp" + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source5.cpp" + DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/.." + PROPERTY GENERATED "0") +set_property(SOURCE "${CMAKE_CURRENT_BINARY_DIR}/../Generated_source6.cpp" + TARGET_DIRECTORY executable1 + PROPERTY GENERATED "0") diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt index fc89f96..0b02184 100644 --- a/Tests/RunCMake/CMakeLists.txt +++ b/Tests/RunCMake/CMakeLists.txt @@ -129,6 +129,7 @@ add_RunCMake_test(CMP0115) if(CMAKE_GENERATOR MATCHES "Ninja") add_RunCMake_test(CMP0116) endif() +add_RunCMake_test(CMP0118) # The test for Policy 65 requires the use of the # CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS variable, which both the VS and Xcode diff --git a/Tests/RunCMake/FileAPI/RunCMakeTest.cmake b/Tests/RunCMake/FileAPI/RunCMakeTest.cmake index 4449ff1..2bb2765 100644 --- a/Tests/RunCMake/FileAPI/RunCMakeTest.cmake +++ b/Tests/RunCMake/FileAPI/RunCMakeTest.cmake @@ -50,7 +50,9 @@ run_cmake(ClientStateful) function(run_object object) set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/${object}-build) + list(APPEND RunCMake_TEST_OPTIONS -DCMAKE_POLICY_DEFAULT_CMP0118=NEW) run_cmake(${object}) + list(POP_BACK RunCMake_TEST_OPTIONS) set(RunCMake_TEST_NO_CLEAN 1) run_cmake_command(${object}-SharedStateless ${CMAKE_COMMAND} .) run_cmake_command(${object}-ClientStateless ${CMAKE_COMMAND} .) diff --git a/Tests/RunCMake/Ninja/AssumedSources.cmake b/Tests/RunCMake/Ninja/AssumedSources.cmake index 5fb0219..d5364f0 100644 --- a/Tests/RunCMake/Ninja/AssumedSources.cmake +++ b/Tests/RunCMake/Ninja/AssumedSources.cmake @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.8) +cmake_policy(SET CMP0118 NEW) project(AssumedSources) set_source_files_properties( |