Skip to content

Commit

Permalink
Fix CMake: remove excessive commands to the compiler to treat warning…
Browse files Browse the repository at this point in the history
…s as errors
  • Loading branch information
st235 committed Jul 10, 2024
1 parent 3381bab commit 6a93807
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.0 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 @@ -17,9 +17,9 @@ add_library(jsonc
)

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 6a93807

Please sign in to comment.