summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FileAPI/codemodel-v2-check.py
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-22 15:40:07 (GMT)
committerBrad King <brad.king@kitware.com>2022-08-22 18:51:16 (GMT)
commit0d64c3abd13a0b14f1a14b7717dbac8988d12256 (patch)
treec925eb0e3a51350002d4e0ca294db5e5f39d431b /Tests/RunCMake/FileAPI/codemodel-v2-check.py
parentef6a4240babe28fdb7f678288aade9f962b7ec11 (diff)
downloadCMake-0d64c3abd13a0b14f1a14b7717dbac8988d12256.zip
CMake-0d64c3abd13a0b14f1a14b7717dbac8988d12256.tar.gz
CMake-0d64c3abd13a0b14f1a14b7717dbac8988d12256.tar.bz2
Tests: Add FileAPI case for cross-directory target_* commands
The backtraces for some of the commands incorrectly come from the target's directory instead of the caller's directory. Expect the incorrect backtraces in test results for now. Increase the minimum required version of CMake in the test case to enable policy CMP0079 to support cross-directory calls. Issue: #23873
Diffstat (limited to 'Tests/RunCMake/FileAPI/codemodel-v2-check.py')
-rw-r--r--Tests/RunCMake/FileAPI/codemodel-v2-check.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tests/RunCMake/FileAPI/codemodel-v2-check.py b/Tests/RunCMake/FileAPI/codemodel-v2-check.py
index 01a004c..b7623de 100644
--- a/Tests/RunCMake/FileAPI/codemodel-v2-check.py
+++ b/Tests/RunCMake/FileAPI/codemodel-v2-check.py
@@ -664,6 +664,7 @@ def gen_check_directories(c, g):
read_codemodel_json_data("directories/dir_dir.json"),
read_codemodel_json_data("directories/external.json"),
read_codemodel_json_data("directories/fileset.json"),
+ read_codemodel_json_data("directories/subdir.json"),
]
if matches(g["name"], "^Visual Studio "):
@@ -722,6 +723,7 @@ def gen_check_targets(c, g, inSource):
read_codemodel_json_data("targets/c_shared_exe.json"),
read_codemodel_json_data("targets/c_static_lib.json"),
read_codemodel_json_data("targets/c_static_exe.json"),
+ read_codemodel_json_data("targets/c_subdir.json"),
read_codemodel_json_data("targets/all_build_cxx.json"),
read_codemodel_json_data("targets/zero_check_cxx.json"),