Skip to content

Commit e4622cb

Browse files
authored
chore(cmake): add compile commands to preset (#5685)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 98bd78f commit e4622cb

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

CMakePresets.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
},
1313
"cacheVariables": {
1414
"CMAKE_BUILD_TYPE": "Debug",
15-
"PYBIND11_FINDPYTHON": "NEW",
16-
"PYBIND11_WERROR": true,
15+
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
1716
"DOWNLOAD_CATCH": true,
18-
"DOWNLOAD_EIGEN": true
17+
"DOWNLOAD_EIGEN": true,
18+
"PYBIND11_FINDPYTHON": "NEW",
19+
"PYBIND11_WERROR": true
20+
1921
}
2022
},
2123
{
@@ -24,12 +26,13 @@
2426
"inherits": "default",
2527
"cacheVariables": {
2628
"CMAKE_BUILD_TYPE": "Debug",
29+
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
30+
"DOWNLOAD_CATCH": true,
31+
"DOWNLOAD_EIGEN": true,
2732
"PYBIND11_CREATE_WITH_UV": "python3",
28-
"Python_ROOT_DIR": ".venv",
29-
"PYBIND11_WERROR": true,
3033
"PYBIND11_FINDPYTHON": "NEW",
31-
"DOWNLOAD_CATCH": true,
32-
"DOWNLOAD_EIGEN": true
34+
"PYBIND11_WERROR": true,
35+
"Python_ROOT_DIR": ".venv"
3336
}
3437
}
3538
],

0 commit comments

Comments
 (0)