mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 19:30:13 -06:00
We have long incorrectly accepted both of these together, and used only the first one. Add a test to preserve compatibility.
11 lines
332 B
CMake
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"
|
|
)
|