mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Previously `file(GENERATE)` did not define any behavior for relative paths given to the `OUTPUT` or `INPUT` arguments. Define behavior consistent with CMake conventions and add a policy to provide compatibility for projects that relied on the old accidental behavior. Fixes: #16786
4 lines
191 B
CMake
4 lines
191 B
CMake
cmake_policy(SET CMP0070 OLD)
|
|
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/relative-input-OLD.txt "relative-input-OLD\n")
|
|
file(GENERATE OUTPUT relative-output-OLD.txt INPUT relative-input-OLD.txt)
|