From 15674257a91c8f83a236d54e2b0d6d1f0e9dc3ec Mon Sep 17 00:00:00 2001 From: firewave Date: Fri, 27 Feb 2026 14:45:41 +0100 Subject: [PATCH] adjusted mode of some CMake messages this allows CMake to fail with `-Werror=` is specified --- cmake/options.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/options.cmake b/cmake/options.cmake index 4a315667093..61328ece53b 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -25,7 +25,7 @@ option(ANALYZE_TYPE "Build with TypeSanitizer to detect aliasing issues" option(WARNINGS_ARE_ERRORS "Treat warnings as errors" OFF) if(WARNINGS_ARE_ERRORS) if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24") - message(WARNING "WARNINGS_ARE_ERRORS is deprecated - please use CMAKE_COMPILE_WARNING_AS_ERROR instead") + message(DEPRECATION "WARNINGS_ARE_ERRORS is deprecated - please use CMAKE_COMPILE_WARNING_AS_ERROR instead") endif() set(CMAKE_COMPILE_WARNING_AS_ERROR On) endif() @@ -58,9 +58,9 @@ if(BUILD_CORE_DLL AND NOT MSVC) endif() option(BUILD_TESTS "Build tests" OFF) if(DEFINED BUILD_TESTS) - message(WARNING "BUILD_TESTS has been deprecated and will be removed in Cppcheck 2.22 - please use BUILD_TESTING instead") + message(DEPRECATION "BUILD_TESTS has been deprecated and will be removed in Cppcheck 2.22 - please use BUILD_TESTING instead") if(DEFINED BUILD_TESTING) - message(WARNING "BUILD_TESTS and BUILD_TESTING have been defined at the same time - ignoring BUILD_TESTS") + message(AUTHOR_WARNING "BUILD_TESTS and BUILD_TESTING have been defined at the same time - ignoring BUILD_TESTS") else() set(BUILD_TESTING "${BUILD_TESTS}") endif()