Merge pull request #582 from yegorich/clangd

CMakeLists.txt: enable CMAKE_EXPORT_COMPILE_COMMANDS by default
pull/583/head
Marc Kleine-Budde 2025-03-01 16:47:48 +01:00 committed by GitHub
commit a24bff8b08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
if(CMAKE_EXPORT_COMPILE_COMMANDS STREQUAL "")
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "project default" FORCE)
endif()
# Add an option to enable treating warnings as errors
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)