forked from microsoft/vscode-cpptools
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Yiftah Waisman edited this page Oct 20, 2024
·
15 revisions
- CMake pull request:
compdb: mergedCompileCommands for CMake subprojects - cpptools issue:
Support multiple compile commands files per project
- must use
CMakeas the build system - must use VSCode's
CMake Toolsto build your project (runningcmake ..,makeon your project will not causeCMake Toolsto merge the generated db files)
- define the following entries in
.vscode/settings.json:
-
"C_Cpp.default.compileCommands"is not changed to accept a list for backwards compatibility, specifying multiple sources will not inform where the destination file should be saved. -
"C_Cpp.default.compileCommands"can also be ignored and overridden toC_cpp.mergeCompileCommands.destination(not mandatory)
- paths defined in
c_cpp_properties.jsonare specific for a configuration, each maybe having onecompileCommandspath. -
C_Cpp.default.compileCommandsfrom.vscode/settings.jsonis only used if the selected configuration didn't define acompileCommands. - defining
compileCommandsin configurations will mask the single merged file as some configuration is always selected.
- fill me with data