feat: enable CMAKE_EXPORT_COMPILE_COMMANDS by default

Change-Id: I4c31a14d37c43cd8d5bba6ba880d57d50ab8d07a
This commit is contained in:
listenerri 2019-03-13 14:01:38 +08:00
parent bba276aed1
commit f218a3b672

View File

@ -11,6 +11,9 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_FLAGS "-g -Wall")
# generate a compile commands file as complete database for vim-YouCompleteMe or some other similar tools
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(GNUInstallDirs)
if (NOT (${CMAKE_BUILD_TYPE} MATCHES "Debug"))