diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-01-14 17:49:21 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-01-19 16:21:35 (GMT) |
commit | 0c2d234bc9be8fbdad5b14d3d5e66026a5d6e2fc (patch) | |
tree | 0973142d9cf229a49d9d624f1cf03cb673f956f3 /Tests/RunCMake/CMakePresets | |
parent | a0e78cc30c9c3ab71ef6030cc30e4be51468ffb4 (diff) | |
download | CMake-0c2d234bc9be8fbdad5b14d3d5e66026a5d6e2fc.zip CMake-0c2d234bc9be8fbdad5b14d3d5e66026a5d6e2fc.tar.gz CMake-0c2d234bc9be8fbdad5b14d3d5e66026a5d6e2fc.tar.bz2 |
CMakePresets: Allow files included from CMakePresets.json to be anywhere
There are some valid use cases for allowing these files to be outside
the project directory. Relax the restriction, and include a strong
warning in the documentation.
Diffstat (limited to 'Tests/RunCMake/CMakePresets')
3 files changed, 0 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMakePresets/IncludeOutsideProject-result.txt b/Tests/RunCMake/CMakePresets/IncludeOutsideProject-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CMakePresets/IncludeOutsideProject-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CMakePresets/IncludeOutsideProject-stderr.txt b/Tests/RunCMake/CMakePresets/IncludeOutsideProject-stderr.txt deleted file mode 100644 index 2aa3f59..0000000 --- a/Tests/RunCMake/CMakePresets/IncludeOutsideProject-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: Could not read presets from [^ -]*/Tests/RunCMake/CMakePresets/IncludeOutsideProject: File included from outside project directory$ diff --git a/Tests/RunCMake/CMakePresets/IncludeOutsideProject.cmake b/Tests/RunCMake/CMakePresets/IncludeOutsideProject.cmake new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/RunCMake/CMakePresets/IncludeOutsideProject.cmake |