$OpenBSD: patch-lib_cpp_CMakeLists_txt,v 1.3 2018/06/03 14:20:43 jasper Exp $

Index: lib/cpp/CMakeLists.txt
--- lib/cpp/CMakeLists.txt.orig
+++ lib/cpp/CMakeLists.txt
@@ -39,7 +39,7 @@ endif (${WITH_STATIC_LIBRARIES} STREQUAL ON)
 
 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"))
 
