mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
Merge pull request #4394 from mikdusan/fix-cmake-regression
stage1: fix cmake regression
This commit is contained in:
commit
b022db16ec
@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 2.8.5)
|
|||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
|
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()
|
endif()
|
||||||
|
|
||||||
set(_list "Debug;Release;RelWithDebInfo;MinSizeRel")
|
set(_list "None;Debug;Release;RelWithDebInfo;MinSizeRel")
|
||||||
list(FIND _list ${CMAKE_BUILD_TYPE} _index)
|
list(FIND _list ${CMAKE_BUILD_TYPE} _index)
|
||||||
if(${_index} EQUAL -1)
|
if(${_index} EQUAL -1)
|
||||||
string(REPLACE ";" ", " _list_pretty "${_list}")
|
string(REPLACE ";" ", " _list_pretty "${_list}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user