Skip to content

Commit 07c857e

Browse files
committed
fix: add system includes to compile_commands.json
fixes LSP on systems with multiple compilers
1 parent 04c8a57 commit 07c857e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ add_definitions(-DBOOST_LOG_DYN_LINK)
99

1010
set(CMAKE_CXX_STANDARD 17)
1111
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
12+
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
1213

1314
# library
1415
file(GLOB SOURCES "src/*.cpp")

0 commit comments

Comments
 (0)