feat: honor command-line CMAKE_EXPORT_COMPILE_COMMANDS setting
This commit is contained in:
parent
fc5ad7f137
commit
0c3fcbe9f8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue