Skip to content

Commit

Permalink
CMakeLists.txt: correct CMAKE_EXPORT_COMPILE_COMMANDS option
Browse files Browse the repository at this point in the history
Signed-off-by: Junbo Zheng <[email protected]>
  • Loading branch information
Junbo-Zheng committed Mar 11, 2023
1 parent fedb019 commit 192020c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ project(mem_pool LANGUAGES C)

include_directories(${PROJECT_SOURCE_DIR}/src)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(SRC
main.c
src/malloc.c
Expand All @@ -21,8 +23,6 @@ if(MEMORY_POOL_DEBUG)
target_compile_definitions(mem_pool PUBLIC -DCONFIG_MEMORY_POOL_DEBUG=1)
endif()

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

add_compile_options(-Wall -Wextra -Werror -Wno-format -g)

target_include_directories(mem_pool PRIVATE "${CMAKE_SOURCE_DIR}/src/")

0 comments on commit 192020c

Please sign in to comment.