summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-05-31 07:38:10 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-05-31 08:01:27 (GMT)
commit0cc1b550ddc7cb677ce45fd54f6bbb92f3ff2268 (patch)
tree51b8cad6afefa65e2276bf5b1298a884252c2c37 /Tests/RunCMake/Syntax
parent140766867b2c8f8dff0e4d0d73e481b6944b5284 (diff)
downloadCMake-0cc1b550ddc7cb677ce45fd54f6bbb92f3ff2268.zip
CMake-0cc1b550ddc7cb677ce45fd54f6bbb92f3ff2268.tar.gz
CMake-0cc1b550ddc7cb677ce45fd54f6bbb92f3ff2268.tar.bz2
ExternalProject,FetchContent: Avoid CMAKE_DISABLE_SOURCE_CHANGES error
The file(MAKE_DIRECTORY) implementation checks whether a path is allowed to be written to before it checks if it already exists. For the scenario where a SOURCE_DIR is an existing directory within the main project's source directory, this triggers a fatal error if CMAKE_DISABLE_SOURCE_CHANGES is set to true for ExternalProject, and some FetchContent scenarios. Therefore, add an explicit check for existence first to avoid making such error-triggering calls. Fixes: #21872
Diffstat (limited to 'Tests/RunCMake/Syntax')
0 files changed, 0 insertions, 0 deletions