$OpenBSD: patch-Source_cmInstallCommand_cxx,v 1.15 2019/08/21 05:47:40 rsadowski Exp $
Index: Source/cmInstallCommand.cxx
--- Source/cmInstallCommand.cxx.orig
+++ Source/cmInstallCommand.cxx
@@ -378,6 +378,9 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<s
   }
 
   // Select the mode for installing symlinks to versioned shared libraries.
+  // Do not install symlinks to versioned shared libraries on OpenBSD.
+  // Use NamelinkModeSkip unconditionally.
+#if !defined(__OpenBSD__)
   cmInstallTargetGenerator::NamelinkModeType namelinkMode =
     cmInstallTargetGenerator::NamelinkModeNone;
   if (libraryArgs.GetNamelinkOnly()) {
@@ -385,6 +388,10 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<s
   } else if (libraryArgs.GetNamelinkSkip()) {
     namelinkMode = cmInstallTargetGenerator::NamelinkModeSkip;
   }
+#else
+  cmInstallTargetGenerator::NamelinkModeType namelinkMode =
+    cmInstallTargetGenerator::NamelinkModeSkip;
+#endif
 
   // Check if there is something to do.
   if (targetList.empty()) {
