OpenJK icon indicating copy to clipboard operation
OpenJK copied to clipboard

[Shared] add a custom CMake target to copy compilation DB from build dir to source dir

Open Razish opened this issue 9 months ago • 2 comments

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

Razish avatar Oct 08 '23 12:10 Razish