From 6a93807a8c7ee2d0fa88ac0aaa7d2863e8355659 Mon Sep 17 00:00:00 2001 From: Alex Dadukin Date: Wed, 10 Jul 2024 18:30:57 +0100 Subject: [PATCH] Fix CMake: remove excessive commands to the compiler to treat warnings as errors --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8052404..dc72a0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. @@ -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)