From 82998d688c6d67325275b780696a74b2fa0d643b Mon Sep 17 00:00:00 2001 From: Daniel Dada Date: Fri, 19 Dec 2025 10:33:14 +0300 Subject: [PATCH] build: write .clangd with proper compile_commands path on configure --- .gitignore | 2 ++ CMakeLists.txt | 4 ++++ src/core/common/version.hpp | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5359878..138637a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ .vs out +.clangd + build/ build-msvc/ CMakeCache.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 995dd56..e7c0439 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +file(WRITE "${CMAKE_SOURCE_DIR}/.clangd" + "CompileFlags: + CompilationDatabase: ${CMAKE_BINARY_DIR}") + option(USE_SYSTEM_GLFW "Use system-installed GLFW instead of fetching it statically" OFF) message(STATUS "USE_SYSTEM_GLFW: ${USE_SYSTEM_GLFW}") diff --git a/src/core/common/version.hpp b/src/core/common/version.hpp index 9b55112..3753ba1 100644 --- a/src/core/common/version.hpp +++ b/src/core/common/version.hpp @@ -6,7 +6,7 @@ namespace clrsync::core { -const std::string GIT_SEMVER = "0.1.7+git.g2a43348"; +const std::string GIT_SEMVER = "0.1.7+git.g6ac9c03"; const std::string version_string(); } // namespace clrsync::core