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