mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
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)
13 lines
639 B
Text
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")
|