From 2e97060691ca5fc8fea461d11d82ec9c939d301f Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Wed, 2 Apr 2025 10:12:35 +0200 Subject: [PATCH] CMakeLists.txt: enable CMAKE_EXPORT_COMPILE_COMMANDS by default This creates a compile_commands.json file that can then be used by the clangd tool. --- CMakeLists.txt | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 90a1b6d..c5dbc74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "") endif("${CMAKE_BUILD_TYPE}" STREQUAL "") set(CMAKE_COLOR_MAKEFILE ON) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + add_definitions(-Wall) include(CMakeOptions.txt) -- 1.7.1