mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-23 23:18:38 -06:00
We have long incorrectly accepted both of these together, and used only the first one. Add a test to preserve compatibility.
9 lines
386 B
CMake
9 lines
386 B
CMake
file(READ "${RunCMake_TEST_BINARY_DIR}/output-INPUT.txt" input)
|
|
if(NOT input MATCHES "INPUT file")
|
|
string(APPEND RunCMake_TEST_FAILED "INPUT incorrectly overridden by CONTENT")
|
|
endif()
|
|
file(READ "${RunCMake_TEST_BINARY_DIR}/output-CONTENT.txt" content)
|
|
if(NOT content MATCHES "CONTENT argument")
|
|
string(APPEND RunCMake_TEST_FAILED "CONTENT incorrectly overridden by INPUT")
|
|
endif()
|