1
0
Fork 0

feat: honor command-line CMAKE_EXPORT_COMPILE_COMMANDS setting

main
mandlm 2023-10-12 12:00:49 +02:00
parent fc5ad7f137
commit 0c3fcbe9f8
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 3 additions and 1 deletions

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)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES