$OpenBSD: patch-Modules_Platform_OpenBSD_cmake,v 1.17 2020/11/23 07:25:15 rsadowski Exp $

Index: Modules/Platform/OpenBSD.cmake
--- Modules/Platform/OpenBSD.cmake.orig
+++ Modules/Platform/OpenBSD.cmake
@@ -40,4 +40,9 @@ else()
   set(OPENBSD_X11BASE /usr/X11R6)
 endif()
 
+# If DEBUG_PACKAGES set don't create install strip(1) rule
+if(DEFINED ENV{DEBUG_PACKAGES})
+  set(CMAKE_OPENBSD_DEBUG_PACKAGES)
+endif()
+
 list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${OPENBSD_LOCALBASE})
