CMakeLists.txt strange warning (string vs STRING) tackled

This commit is contained in:
Louis Rubet 2022-02-22 17:20:47 +01:00
parent 8f5a334fe0
commit 4e51a21e0d

View file

@ -6,7 +6,7 @@ project(rpn)
if((NOT CMAKE_BUILD_TYPE MATCHES Debug)
AND (NOT CMAKE_BUILD_TYPE MATCHES Release))
set(CMAKE_BUILD_TYPE Release CACHE string "Choose the type of build, options are: None Debug Release" FORCE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release" FORCE)
endif()
message(STATUS "Build mode: ${CMAKE_BUILD_TYPE}")