From 6f9ba1d2963d4da52b5f1207578f6ced10a7ea39 Mon Sep 17 00:00:00 2001 From: M4yGem1ni <3164864582@qq.com> Date: Fri, 10 Apr 2026 15:08:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=80=E5=90=AFlinux=20clangd?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + compile_commands.json | 1 + 2 files changed, 2 insertions(+) create mode 120000 compile_commands.json diff --git a/CMakeLists.txt b/CMakeLists.txt index 9be1e35..368fc62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(krylov_gmres VERSION 0.1.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) option(KRYLOV_BUILD_TESTS "Build krylov unit tests" ON) diff --git a/compile_commands.json b/compile_commands.json new file mode 120000 index 0000000..affbd32 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1 @@ +./build/compile_commands.json \ No newline at end of file