From d51dce4ae38b8990c5dd75f24e5b9fb3d0a11f5a Mon Sep 17 00:00:00 2001 From: chentianya Date: Sat, 22 Aug 2026 13:13:12 +0800 Subject: [PATCH] =?UTF-8?q?CMakePresets:=20=E5=90=AF=E7=94=A8=20compile=5F?= =?UTF-8?q?commands.json=20=E5=AF=BC=E5=87=BA=EF=BC=88IDE/=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=88=86=E6=9E=90=E7=94=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakePresets.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakePresets.json b/CMakePresets.json index e150da9..c584cae 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -13,7 +13,8 @@ "binaryDir": "${sourceDir}/build/${presetName}", "cacheVariables": { "CMAKE_C_COMPILER": "gcc", - "CMAKE_CXX_COMPILER": "g++" + "CMAKE_CXX_COMPILER": "g++", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" } }, {