From f9124b26e1b46cb97cb23dde43dcfa62ac882b37 Mon Sep 17 00:00:00 2001 From: braw-lee <93831198+braw-lee@users.noreply.github.com> Date: Thu, 16 Nov 2023 14:45:20 +0530 Subject: [PATCH] feature,cmake: Export compile commands (#263) 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)