From 3c8b4e3366c50886fbe6b8bcce2abfb2b822ffc7 Mon Sep 17 00:00:00 2001 From: Savenkov Igor Date: Sat, 3 Oct 2026 13:07:20 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[cmake]=20Enable=20warnings=20as=20?= =?UTF-8?q?errors=20in=20CMake=20directly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + cmake/Warnings.cmake | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55ec1ec7..77dd7187 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ project (TermGraph HOMEPAGE_URL "https://termgraph.app/" LANGUAGES CXX) +set (CMAKE_COMPILE_WARNING_AS_ERROR ON) set (CMAKE_EXPORT_COMPILE_COMMANDS ON) set (CMAKE_CXX_SCAN_FOR_MODULES False) diff --git a/cmake/Warnings.cmake b/cmake/Warnings.cmake index 66825359..a4cc575e 100644 --- a/cmake/Warnings.cmake +++ b/cmake/Warnings.cmake @@ -5,7 +5,6 @@ add_library(project_warnings INTERFACE) if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU") target_compile_options(project_warnings INTERFACE - -Werror -Wall -Wextra -Wpedantic