summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake')
-rw-r--r--Tests/RunCMake/FetchContent/ManualSourceDirectory.cmake8
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)