diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-15 19:29:20 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-15 20:22:21 (GMT) |
commit | a186c1aff61fdedd2ef8d544c9f31c739daaa896 (patch) | |
tree | d4d3ec2624cf461de21d6f6d6c5695459c808f7a /Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake | |
parent | cc803ce68049925afff405c3dad6fd4e4559a005 (diff) | |
download | CMake-a186c1aff61fdedd2ef8d544c9f31c739daaa896.zip CMake-a186c1aff61fdedd2ef8d544c9f31c739daaa896.tar.gz CMake-a186c1aff61fdedd2ef8d544c9f31c739daaa896.tar.bz2 |
Ninja Multi-Config: Deduplicate compile_commands.json for cross configs
compile_commands.json was being written for every permutation of
cross configurations. Deduplicate so only one command is output
for each configuration.
Fixes: #23733
Diffstat (limited to 'Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake')
-rw-r--r-- | Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake b/Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake new file mode 100644 index 0000000..fc44d5a --- /dev/null +++ b/Tests/RunCMake/NinjaMultiConfig/CompileCommands.cmake @@ -0,0 +1,3 @@ +enable_language(C) + +add_executable(exe main.c) |