CMake: Enable generation of compile_commands.json. Used for intellisense in Visual Studio Code et al.

This commit is contained in:
Jordan Woyak 2019-10-06 07:59:23 -05:00
parent b6545ea285
commit e08663bc32

View File

@ -13,6 +13,7 @@ endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if (MSVC)
# Set warning level to 4