$OpenBSD: patch-lib_cpp_CMakeLists_txt,v 1.4 2019/02/12 19:18:41 jasper Exp $

Index: lib/cpp/CMakeLists.txt
--- lib/cpp/CMakeLists.txt.orig
+++ lib/cpp/CMakeLists.txt
@@ -39,7 +39,7 @@ endif (WITH_STATIC_LIBRARIES)
 
 install(FILES mosquittopp.h DESTINATION "${INCLUDEDIR}")
 
-if (UNIX AND NOT APPLE)
+if (UNIX AND NOT APPLE AND NOT (CMAKE_SYSTEM_NAME MATCHES "OpenBSD"))
 	install(CODE "EXEC_PROGRAM(/sbin/ldconfig)")
-endif (UNIX AND NOT APPLE)
+endif (UNIX AND NOT APPLE AND NOT (CMAKE_SYSTEM_NAME MATCHES "OpenBSD"))
 
