diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-10-03 08:46:08 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-10-03 08:46:08 (GMT) |
commit | b030a6af88a02b0237a00e6f3df4a5807f338823 (patch) | |
tree | b2b905bd77e5193a44393c70bc274d68b5ac7118 /Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake | |
parent | 468bcc3291ac3f325b401046b2465d634d8e3947 (diff) | |
download | CMake-b030a6af88a02b0237a00e6f3df4a5807f338823.zip CMake-b030a6af88a02b0237a00e6f3df4a5807f338823.tar.gz CMake-b030a6af88a02b0237a00e6f3df4a5807f338823.tar.bz2 |
FetchContent: Raise error if manually given source dir does not exist
Fixes: #21208
Diffstat (limited to 'Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake')
-rw-r--r-- | Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake b/Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake new file mode 100644 index 0000000..83fcc4b --- /dev/null +++ b/Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake @@ -0,0 +1,8 @@ +include(FetchContent) + +FetchContent_Declare( + WithProject + SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/ADirThatDoesNotExist +) + +FetchContent_MakeAvailable(WithProject) |