From efb26207cfc95842fd00e1596d353a1b60cd7d1f Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Wed, 9 Oct 2024 21:06:01 +0100 Subject: [PATCH] Enabling warnings as errors if supported --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 981b8032d..96a9afa73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ set(QT_MIN_VERSION "6.7.0") set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD_REQUIRED TRUE) +set(CMAKE_COMPILE_WARNING_AS_ERROR TRUE) find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)