File cmake-libdir.patch of Package paho-mqtt-c

--- paho.mqtt.c-1.3.5/src/CMakeLists.txt
+++ paho.mqtt.c-1.3.5/src/CMakeLists.txt
@@ -306,7 +306,7 @@
 INSTALL(EXPORT eclipse-paho-mqtt-cTargets
     FILE eclipse-paho-mqtt-cConfig.cmake
     NAMESPACE eclipse-paho-mqtt-c::
-    DESTINATION lib/cmake/eclipse-paho-mqtt-c)
+    DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/eclipse-paho-mqtt-c)
 
 INCLUDE(CMakePackageConfigHelpers)
 WRITE_BASIC_PACKAGE_VERSION_FILE("eclipse-paho-mqtt-cConfigVersion.cmake"
@@ -314,7 +314,7 @@
     COMPATIBILITY SameMajorVersion)
 INSTALL(FILES
     "${CMAKE_CURRENT_BINARY_DIR}/eclipse-paho-mqtt-cConfigVersion.cmake"
-    DESTINATION lib/cmake/eclipse-paho-mqtt-c)
+    DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/eclipse-paho-mqtt-c)
 
 # Base64 test
 ADD_EXECUTABLE( Base64Test EXCLUDE_FROM_ALL Base64.c Base64.h )
openSUSE Build Service is sponsored by