summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-10-28 15:42:24 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-10-28 17:54:43 (GMT)
commit887a8874c343e88ccfca4098584cea91ab8138e6 (patch)
tree1deb703c267fa45069c16d30cafbb706a5970408 /Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake
parent5e1c5425651b215dbee89e46e146e87d10df268f (diff)
downloadCMake-887a8874c343e88ccfca4098584cea91ab8138e6.zip
CMake-887a8874c343e88ccfca4098584cea91ab8138e6.tar.gz
CMake-887a8874c343e88ccfca4098584cea91ab8138e6.tar.bz2
EXPORT_COMPILE_COMMANDS: add `output` field
Also write for all configurations from multi-config generators. This field was added in the Clang 5 documentation and not present in the Clang 4 documentation (sometime between Dec 2016 and Mar 2017 according to `web.archive.org`).
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake')
-rw-r--r--Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake b/Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake
index a1ae6ac..30b24bf 100644
--- a/Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake
+++ b/Tests/RunCMake/NinjaMultiConfig/CompileCommands-check.cmake
@@ -7,7 +7,8 @@ set(expected_compile_commands
]*Debug[^
]*",
"file": "[^
-]*(/Tests/RunCMake/NinjaMultiConfig/main\.c|\\\\Tests\\\\RunCMake\\\\NinjaMultiConfig\\\\main\.c)"
+]*(/Tests/RunCMake/NinjaMultiConfig/main\.c|\\\\Tests\\\\RunCMake\\\\NinjaMultiConfig\\\\main\.c)",
+ "output": "(CMakeFiles/exe\.dir/Debug/main\.c\.o|CMakeFiles\\\\exe\.dir\\\\Debug\\\\main\.c\.obj)"
},
{
"directory": "[^
@@ -16,7 +17,8 @@ set(expected_compile_commands
]*Release[^
]*",
"file": "[^
-]*(/Tests/RunCMake/NinjaMultiConfig/main\.c|\\\\Tests\\\\RunCMake\\\\NinjaMultiConfig\\\\main\.c)"
+]*(/Tests/RunCMake/NinjaMultiConfig/main\.c|\\\\Tests\\\\RunCMake\\\\NinjaMultiConfig\\\\main\.c)",
+ "output": "(CMakeFiles/exe\.dir/Release/main\.c\.o|CMakeFiles\\\\exe\.dir\\\\Release\\\\main\.c\.obj)"
}
]$]==])