Enabling warnings as errors if supported

This commit is contained in:
Rob Emery 2024-10-09 21:06:01 +01:00
parent 6d202a1080
commit efb26207cf

View file

@ -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)