CMake/Tests/RunCMake/File_Generate/InputAndContent.cmake
Brad King fd3ed41109 file(GENERATE): Add test case covering use of both INPUT and CONTENT
We have long incorrectly accepted both of these together, and used only
the first one.  Add a test to preserve compatibility.
2022-07-05 16:30:55 -04:00

11 lines
332 B
CMake

file(GENERATE
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output-INPUT.txt"
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/InputAndContent-input.txt"
CONTENT "CONTENT argument"
)
file(GENERATE
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output-CONTENT.txt"
CONTENT "CONTENT argument"
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/InputAndContent-input.txt"
)