cmake: Enable CMAKE_EXPORT_COMPILE_COMMANDS
With this flag enabled, cmake will generate clang compilation database
(compile_commands.json) when build files are generated.
The compilation database is used by "clangd" to provide code intel to
text editors.
@@ -8,6 +8,7 @@ set(FLB_VERSION_PATCH 0)
set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Define macro to identify Windows system (without Cygwin)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
