feat: honor command-line CMAKE_EXPORT_COMPILE_COMMANDS setting

This commit is contained in:
Michael Mandl 2023-10-12 12:00:49 +02:00
parent fc5ad7f137
commit 0c3fcbe9f8
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -1,4 +1,6 @@
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS
ON
CACHE BOOL "Export compile commands database")
if(CMAKE_EXPORT_COMPILE_COMMANDS) if(CMAKE_EXPORT_COMPILE_COMMANDS)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES