feat: extract compile command handling from CMakeLists.txt
This commit is contained in:
parent
0d43936a61
commit
fc5ad7f137
2 changed files with 8 additions and 5 deletions
6
cmake/ExportCompileCommands.cmake
Normal file
6
cmake/ExportCompileCommands.cmake
Normal file
|
@ -0,0 +1,6 @@
|
|||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
if(CMAKE_EXPORT_COMPILE_COMMANDS)
|
||||
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES
|
||||
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue