summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakePresets/FileDir.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-03-07 22:48:18 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-03-07 23:03:16 (GMT)
commitf54507c2f6826e9b2b021dbf3b3fa75dcdce22fe (patch)
tree017a3aebc0cb87ac32482c0f8c0cff70928baa75 /Tests/RunCMake/CMakePresets/FileDir.cmake
parent7a8536e0eab97d5467dbcca9b14f1a9deaf934ae (diff)
downloadCMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.zip
CMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.tar.gz
CMake-f54507c2f6826e9b2b021dbf3b3fa75dcdce22fe.tar.bz2
CMakePresets.json: Add ${fileDir} macro
Fixes: #23214
Diffstat (limited to 'Tests/RunCMake/CMakePresets/FileDir.cmake')
-rw-r--r--Tests/RunCMake/CMakePresets/FileDir.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMakePresets/FileDir.cmake b/Tests/RunCMake/CMakePresets/FileDir.cmake
new file mode 100644
index 0000000..c7298cd
--- /dev/null
+++ b/Tests/RunCMake/CMakePresets/FileDir.cmake
@@ -0,0 +1,3 @@
+include(${CMAKE_CURRENT_LIST_DIR}/TestVariable.cmake)
+
+test_variable(TEST_FILE_DIR "" "${CMAKE_CURRENT_SOURCE_DIR}/subdir")