Skip to content

Commit

Permalink
CMakeLists.txt: enable output of compile commands during generation.
Browse files Browse the repository at this point in the history
Reference:
https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html

Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
  • Loading branch information
Junbo-Zheng committed May 7, 2024
1 parent ffa8014 commit 2a06c67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake-modules")

set(CMAKE_C_STANDARD 11)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

option(BUILD_TESTS "Build and run tests" OFF)
option(TESTS_COV "Run coverage on tests" OFF)
option(BUILD_SINGLE_HEADER "Build single-header version" OFF)
Expand Down

0 comments on commit 2a06c67

Please sign in to comment.