From ba5f1d87838978ae92d4989545a083e28ef58d6f Mon Sep 17 00:00:00 2001 From: q234rty Date: Thu, 19 Oct 2023 22:59:24 +0800 Subject: [PATCH] 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]: https://github.com/Kitware/CMake/commit/ce1cadd35a26bd44879675581d8e70b00ff8e0fc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5429050be37..709a8eaf5e4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()