From e180b26afa549999b5f05e287b00a7566e8bc139 Mon Sep 17 00:00:00 2001 From: Tobias Leibner <tobias.leibner@googlemail.com> Date: Mon, 6 Dec 2021 10:39:19 +0100 Subject: [PATCH] [cmake] enable -Werror if TRAVIS is defined --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 56d56b824..8922d8145 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,11 @@ # set up project project("dune-gdt" CXX) -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.13) + +if("${TRAVIS}" EQUAL "1") + add_compile_options(-Werror) +endif() if(NOT (dune-common_DIR -- GitLab