OpenJK
OpenJK copied to clipboard
[Shared] add a custom CMake target to copy compilation DB from build dir to source dir
Configure with -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
to generate the compilation DB.
This PR will additionally copy this from the build directory to the source directory.
For example, this will provide better VSCodium support when using clangd instead of MS' C++ extension.
see https://clang.llvm.org/docs/JSONCompilationDatabase.html for further details
Is this missing compile_commands.json?
No, that's a generated file that should be gitignored (which it is here). It contains commands, directories etc that are only relevant for your machine/configuration.