From e4622cbd7bfd7638ddd92e642e634c6e5ef4589c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 23 May 2025 15:13:37 -0400 Subject: [PATCH] chore(cmake): add compile commands to preset (#5685) Signed-off-by: Henry Schreiner --- CMakePresets.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 57a1c0b2f..bf17f858e 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -12,10 +12,12 @@ }, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", - "PYBIND11_FINDPYTHON": "NEW", - "PYBIND11_WERROR": true, + "CMAKE_EXPORT_COMPILE_COMMANDS": true, "DOWNLOAD_CATCH": true, - "DOWNLOAD_EIGEN": true + "DOWNLOAD_EIGEN": true, + "PYBIND11_FINDPYTHON": "NEW", + "PYBIND11_WERROR": true + } }, { @@ -24,12 +26,13 @@ "inherits": "default", "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", - "PYBIND11_CREATE_WITH_UV": "python3", - "Python_ROOT_DIR": ".venv", - "PYBIND11_WERROR": true, - "PYBIND11_FINDPYTHON": "NEW", + "CMAKE_EXPORT_COMPILE_COMMANDS": true, "DOWNLOAD_CATCH": true, - "DOWNLOAD_EIGEN": true + "DOWNLOAD_EIGEN": true, + "PYBIND11_CREATE_WITH_UV": "python3", + "PYBIND11_FINDPYTHON": "NEW", + "PYBIND11_WERROR": true, + "Python_ROOT_DIR": ".venv" } } ],