diff options
Diffstat (limited to 'Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake')
-rw-r--r-- | Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake b/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake index fc4f5ec..2b66515 100644 --- a/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake +++ b/Tests/RunCMake/CMP0118/CMP0118-Common-Test1.cmake @@ -1,9 +1,9 @@ -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" ) get_property(prop SOURCE - "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.cpp" + "${CMAKE_CURRENT_BINARY_DIR}/GeneratedMain.txt" PROPERTY GENERATED) message(NOTICE "prop: `${prop}`") |