From 5e634c8999e631aacb7deacd968b40ff25fc15de Mon Sep 17 00:00:00 2001 From: Timo Suoranta <47668180+tsuoranta@users.noreply.github.com> Date: Tue, 22 Oct 2019 07:38:04 +0300 Subject: [PATCH] Enable generation of compile_commands.json (#1938) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78dc5b28..dcb2d0de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,9 @@ if (POLICY CMP0048) endif() set_property(GLOBAL PROPERTY USE_FOLDERS ON) +# Enable compile commands database +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # Adhere to GNU filesystem layout conventions include(GNUInstallDirs)