$OpenBSD: patch-Source_cmInstallCommand_cxx,v 1.14 2018/06/14 17:04:45 sthen Exp $
Index: Source/cmInstallCommand.cxx
--- Source/cmInstallCommand.cxx.orig
+++ Source/cmInstallCommand.cxx
@@ -318,6 +318,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()) {
@@ -325,6 +328,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.GetVector().empty()) {
