cmake: Map cmake None to meson empty (#3614)

While not explicitly mentioned by the cmake documentation, cmake
upstream seems to think of None as a vaild CMAKE_BUILD_TYPE. [1]
Handle it properly by mapping it to meson's empty.

[1]: ce1cadd35a
This commit is contained in:
q234rty 2023-10-19 22:59:24 +08:00 committed by GitHub
parent d994e6aea6
commit ba5f1d8783
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,8 @@ if(CMAKE_BUILD_TYPE)
set(BUILDTYPE_LOWER "debugoptimized")
elseif(BUILDTYPE_LOWER STREQUAL "minsizerel")
set(BUILDTYPE_LOWER "minsize")
elseif(BUILDTYPE_LOWER STREQUAL "none")
set(BUILDTYPE_LOWER "empty")
else()
set(BUILDTYPE_LOWER "release")
endif()