From b4f48ee7855f321e29bf4b2f9aca6e7e18126806 Mon Sep 17 00:00:00 2001 From: brawlee Date: Thu, 16 Nov 2023 12:00:28 +0530 Subject: [PATCH] feature,cmake: Export compile commands Added flag to export comile commands into build folder This generates a Clang compilation database normally used for editor integration or Clang refactoring tools --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ae863e85..3ffdbac6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project(${PROJECT_NAME} CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED YES) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) option(BUILD_FAKER_TESTS DEFAULT ON)