From 378ae795178e8e41126588ba954e6c1436e20f78 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Fri, 15 Mar 2024 10:14:34 +0100 Subject: [PATCH] FIX issue #124 warning() is not a valid CMake method (using message(WARNING ...) instead) --- cmake/jkqtplotter_cmake_options.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/jkqtplotter_cmake_options.cmake b/cmake/jkqtplotter_cmake_options.cmake index 371a7a32c9..cf1e99f13e 100644 --- a/cmake/jkqtplotter_cmake_options.cmake +++ b/cmake/jkqtplotter_cmake_options.cmake @@ -51,7 +51,7 @@ set(jkqtplotter_default_build_type "Debug") get_property(JKQtPlotter_isMultiConfigGenerator GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(NOT JKQtPlotter_isMultiConfigGenerator) if(NOT CMAKE_BUILD_TYPE) - warning(STATUS "Setting build type to '${jkqtplotter_default_build_type}' as none was specified.") + message(WARNING "Setting build type to '${jkqtplotter_default_build_type}' as none was specified.") set(CMAKE_BUILD_TYPE ${jkqtplotter_default_build_type} CACHE STRING "Choose the type of build." FORCE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") endif()