From 5dfd7a4de60c1daf4810345bf1735f3cea826084 Mon Sep 17 00:00:00 2001 From: Dup4 Date: Mon, 18 Apr 2022 13:27:52 +0800 Subject: [PATCH] chore: add -Werror --- CMakeLists.txt | 2 +- test/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bb863c..acf4c0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ option(snapshot_build_tests "Build all of snapshot's own tests." OFF) cmake_minimum_required(VERSION 3.14) -project(snapshot VERSION 0.1.4) +project(snapshot VERSION 0.1.5) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4f9cb9a..f639318 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,6 +23,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage") add_executable(