Skip to content

Commit

Permalink
Merge pull request #14 from st235/fix/excessive_instructions
Browse files Browse the repository at this point in the history
Fix CMake: remove excessive commands to the compiler to treat warnings as errors
  • Loading branch information
st235 authored Jul 10, 2024
2 parents 70deba1 + dd31f31 commit 00f293c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.26)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(JSONC VERSION 0.9.1 DESCRIPTION "JSONC is a lightweight implementation of JSON Data Interchange Standard for C++ programming language.")
project(JSONC VERSION 0.9.2 DESCRIPTION "JSONC is a lightweight implementation of JSON Data Interchange Standard for C++ programming language.")

# Library targets.

Expand All @@ -20,9 +20,9 @@ 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 /WX)
target_compile_options(jsonc PRIVATE /W4)
else()
target_compile_options(jsonc PRIVATE -Wall -Wextra -Wpedantic -Werror)
target_compile_options(jsonc PRIVATE -Wall -Wextra -Wpedantic)
endif()

set_property(TARGET jsonc PROPERTY COMPILE_WARNING_AS_ERROR ON)
Expand Down

0 comments on commit 00f293c

Please sign in to comment.