ports/devel/mimalloc/files/patch-CMakeLists.txt
Emanuel Haupt 2cba286258 devel/mimalloc: fix install wiht WITH_DEBUG
If WITH_DEBUG is defined shared objects are installed with -debug
suffix. This not only fails to install but would also break consumers.

Patch CMakeLists.txt accordingly.

Reported by:	koobs (via irc)
2022-04-12 10:41:41 +02:00

13 lines
639 B
Text

--- CMakeLists.txt.orig 2022-02-15 00:44:33 UTC
+++ CMakeLists.txt
@@ -258,8 +258,8 @@ else()
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)
list(APPEND mi_build_targets "shared")