Skip to content

Commit

Permalink
cmake: generate compile_commands.json for lsp tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 11, 2024
1 parent b505af9 commit 4adcb97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
cmake_minimum_required(VERSION 3.20)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Enable output of compile commands during generation.
option(CMAKE_EXPORT_COMPILE_COMMANDS "Export compile command" ON)

include(utils)
set_version(VERSION)

Expand Down

0 comments on commit 4adcb97

Please sign in to comment.