mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03: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)
|