diff options
Diffstat (limited to 'Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake index feb66e3..1180b6b 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test2.cmake @@ -1,12 +1,12 @@ -add_executable(executable) -target_sources(executable PRIVATE - "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" +add_custom_target(custom) +target_sources(custom PRIVATE + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.txt" ) set_property(SOURCE - "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.txt" PROPERTY GENERATED "1") get_property(prop SOURCE - "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.txt" PROPERTY GENERATED) message(NOTICE "prop: `${prop}`") |