CMake: Enable generation of compile_commands.json. Used for intellisense in Visual Studio Code et al.
This commit is contained in:
parent
b6545ea285
commit
e08663bc32
Source
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue