Skip to content

Commit 727ee2e

Browse files
committed
Export compile commands
1 parent 553a342 commit 727ee2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ if(NOT EXISTS "target/cmake-modules/src/utils.cmake")
99
endif()
1010
include("target/cmake-modules/src/utils.cmake")
1111

12+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
13+
1214
set(CMAKE_BUILD_TYPE Release)
1315
if(NOT WIN32)
1416
set(X_CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wall -Wextra -Wcast-align -Wunused -Wshadow -Wpedantic")

0 commit comments

Comments
 (0)