summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-10-18 13:39:25 (GMT)
committerBrad King <brad.king@kitware.com>2018-12-12 11:40:10 (GMT)
commit3e922ceb5e8cc4c4d72ddcbd8b485803c49d84f1 (patch)
treee44164dc568a4798ecda54b0d82c115748e9d1a1 /Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake
parent555fa77a35b15cf1ed5163bf9fa1782079534ef1 (diff)
downloadCMake-3e922ceb5e8cc4c4d72ddcbd8b485803c49d84f1.zip
CMake-3e922ceb5e8cc4c4d72ddcbd8b485803c49d84f1.tar.gz
CMake-3e922ceb5e8cc4c4d72ddcbd8b485803c49d84f1.tar.bz2
fileapi: add codemodel v2
Start with v2 to distinguish it from server-mode v1. Issue: #18398
Diffstat (limited to 'Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake')
-rw-r--r--Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake b/Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake
new file mode 100644
index 0000000..e2b38ff
--- /dev/null
+++ b/Tests/RunCMake/FileAPI/codemodel-v2-ClientStateful-prep.cmake
@@ -0,0 +1,4 @@
+file(REMOVE_RECURSE ${RunCMake_TEST_BINARY_DIR}/.cmake/api/v1/query)
+file(WRITE "${RunCMake_TEST_BINARY_DIR}/.cmake/api/v1/query/client-foo/query.json" [[
+{ "requests": [ { "kind": "codemodel", "version" : 2 } ] }
+]])