FIX issue #124 warning() is not a valid CMake method (using message(WARNING ...) instead)

This commit is contained in:
jkriege2 2024-03-15 10:14:34 +01:00
parent 8b22212d5d
commit 378ae79517

View File

@ -51,7 +51,7 @@ set(jkqtplotter_default_build_type "Debug")
get_property(JKQtPlotter_isMultiConfigGenerator GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) get_property(JKQtPlotter_isMultiConfigGenerator GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT JKQtPlotter_isMultiConfigGenerator) if(NOT JKQtPlotter_isMultiConfigGenerator)
if(NOT CMAKE_BUILD_TYPE) 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(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") set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif() endif()