Skip to content

Commit

Permalink
Merge branch 'main' into fix/excessive_instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
st235 authored Jul 10, 2024
2 parents 6a93807 + 70deba1 commit dd31f31
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ add_library(jsonc
src/json.cpp
)

target_include_directories(jsonc PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)

# Enable all possible warnings and treat them as errors.
if(MSVC)
target_compile_options(jsonc PRIVATE /W4)
else()
Expand All @@ -24,10 +27,9 @@ endif()

set_property(TARGET jsonc PROPERTY COMPILE_WARNING_AS_ERROR ON)

target_include_directories(jsonc PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)

# Enable assertions statements in the codebase.
if (ASSERT)
message("Enabling assertions in the code")
message("Enabling assertions in the code.")
add_compile_definitions(ASSERT=${ASSERT})
endif()

Expand Down

0 comments on commit dd31f31

Please sign in to comment.