ports/devel/mimalloc/files/patch-CMakeLists.txt
Emanuel Haupt c990c016d8 devel/mimalloc: Update to 3.0.1
Apply patch to fix build [1]

Obtained from:	https://github.com/microsoft/mimalloc/issues/988 [1]
2025-01-13 16:23:50 +01:00

13 lines
687 B
Text

--- CMakeLists.txt.orig 2025-01-13 15:16:06 UTC
+++ CMakeLists.txt
@@ -513,8 +513,8 @@ string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_
set(mi_basename "${mi_basename}-asan")
endif()
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LC)
-if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(release|relwithdebinfo|minsizerel|none)$"))
- set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append build type (e.g. -debug) if not a release version
+if(NOT(CMAKE_BUILD_TYPE_LC MATCHES "^(debug|release|relwithdebinfo|minsizerel|none)$"))
+ set(mi_basename "${mi_basename}-${CMAKE_BUILD_TYPE_LC}") #append build type if not a release version or debug
endif()
if(MI_BUILD_SHARED)