mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -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
3 lines
105 B
CMake
3 lines
105 B
CMake
cmake_policy(SET CMP0070 NEW)
|
|
file(GENERATE OUTPUT relative-output-NEW.txt INPUT relative-input-NEW.txt)
|