mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-24 17:41:39 +08:00
FIX issue #124 warning() is not a valid CMake method (using message(WARNING ...) instead)
This commit is contained in:
parent
8b22212d5d
commit
378ae79517
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user