stage1: fix cmake regression

- add `None` as a valid CMAKE_BUILD_TYPE
- this is a legitimate setting used by packagers

regression was caused by c6df5deb34
master
Michael Dusan 2020-02-05 08:24:50 -05:00
parent 25cbee0b84
commit d0a9da74ef
No known key found for this signature in database
GPG Key ID: ED4C5BA849FA1B74
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 2.8.5)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
"Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()
set(_list "Debug;Release;RelWithDebInfo;MinSizeRel")
set(_list "None;Debug;Release;RelWithDebInfo;MinSizeRel")
list(FIND _list ${CMAKE_BUILD_TYPE} _index)
if(${_index} EQUAL -1)
string(REPLACE ";" ", " _list_pretty "${_list}")