mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-02 08:19:19 +00:00
CREATE_PROJECT: export compile_commands.json via cmake
this is useful for e.g. clangd or other clang based tools like the analyser
This commit is contained in:
parent
d7a13e5831
commit
332c826b4b
@ -81,6 +81,8 @@ void CMakeProvider::createWorkspace(const BuildSetup &setup) {
|
||||
workspace << "cmake_minimum_required(VERSION 3.2)\n"
|
||||
"project(" << setup.projectDescription << ")\n\n";
|
||||
|
||||
workspace << "set(CMAKE_EXPORT_COMPILE_COMMANDS ON)\n";
|
||||
|
||||
workspace << "# Define the engines and subengines\n";
|
||||
writeEngines(setup, workspace);
|
||||
writeSubEngines(setup, workspace);
|
||||
|
Loading…
x
Reference in New Issue
Block a user