| ... | @@ -5,23 +5,6 @@ if(NOT CMAKE_BUILD_TYPE) | ... | @@ -5,23 +5,6 @@ if(NOT CMAKE_BUILD_TYPE) |
| 5 | "Choose the type of build, options are: None 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") | | |
| 9 | string(TOLOWER "${_list}" _list_lower) | | |
| 10 | string(TOLOWER ${CMAKE_BUILD_TYPE} _build_type_lower) | | |
| 11 | list(FIND _list_lower "${_build_type_lower}" _index) | | |
| 12 | if(NOT ${_index} EQUAL -1) | | |
| 13 | list(FIND _list "${CMAKE_BUILD_TYPE}" _index) | | |
| 14 | if(${_index} EQUAL -1) | | |
| 15 | string(REPLACE ";" ", " _list_pretty "${_list}") | | |
| 16 | message("::") | | |
| 17 | message(":: ERROR: build type case-mismatch: ${CMAKE_BUILD_TYPE}") | | |
| 18 | message("::") | | |
| 19 | message(":: valid types: { ${_list_pretty} }") | | |
| 20 | message("::") | | |
| 21 | message(FATAL_ERROR) | | |
| 22 | endif() | | |
| 23 | endif() | | |
| 24 | | | |
| 25 | if(NOT CMAKE_INSTALL_PREFIX) | 8 | if(NOT CMAKE_INSTALL_PREFIX) |
| 26 | set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE STRING | 9 | set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}" CACHE STRING |
| 27 | "Directory to install zig to" FORCE) | 10 | "Directory to install zig to" FORCE) |