From: Yegor Yefremov Date: Wed, 2 Apr 2025 08:12:35 +0000 (+0200) Subject: CMakeLists.txt: enable CMAKE_EXPORT_COMPILE_COMMANDS by default X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=2e97060691ca5fc8fea461d11d82ec9c939d301f;p=libftdi 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. --- 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)