Skip to content

Commit

Permalink
cmake: Map cmake None to meson empty (hyprwm#3614)
Browse files Browse the repository at this point in the history
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]: Kitware/CMake@ce1cadd
  • Loading branch information
q234rty committed Oct 19, 2023
1 parent d994e6a commit ba5f1d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ba5f1d8

Please sign in to comment.