Skip to content

Commit 6cf3039

Browse files
build: export compile_commands.json from the base preset (#67)
Add CMAKE_EXPORT_COMPILE_COMMANDS=ON to the hidden base configure preset so every preset emits build/<preset>/compile_commands.json — making `just lint` (run-clang-tidy) work out of the box. Build-dir only; no effect on compiled output.
1 parent 6af8584 commit 6cf3039

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"generator": "Ninja",
1313
"binaryDir": "${sourceDir}/build/${presetName}",
1414
"cacheVariables": {
15+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
1516
"CMAKE_BUILD_TYPE": "Release",
1617
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
1718
"FLUXGRAPH_BUILD_TESTS": "ON",

0 commit comments

Comments
 (0)