fix #97: install cmake files in ${libdir}
authorMichael Wallner <mike@php.net>
Thu, 24 Dec 2020 09:04:27 +0000 (10:04 +0100)
committerMichael Wallner <mike@php.net>
Thu, 24 Dec 2020 09:04:27 +0000 (10:04 +0100)
src/libhashkit/CMakeLists.txt
src/libmemcached/CMakeLists.txt
src/libmemcachedprotocol/CMakeLists.txt
src/libmemcachedutil/CMakeLists.txt
support/CMakeLists.txt

index 81129ef76873424c741701808d6ba03410438214..48a9a1b9dab151aa8caf44ee7babf398d63319e5 100644 (file)
@@ -49,7 +49,7 @@ install(TARGETS libhashkit EXPORT libhashkit-targets
 export(EXPORT libhashkit-targets NAMESPACE libmemcached::)
 install(EXPORT libhashkit-targets NAMESPACE libmemcached::
         COMPONENT dev
-        DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
 
 install_public_headers(
         libhashkit
index ebc5a213cdfcce2d58ac674c27724ddaae988fe1..ffa1c0ada8789c51ca3a5d3c4118da07fe0897c6 100644 (file)
@@ -129,7 +129,7 @@ install(TARGETS libmemcached EXPORT libmemcached-targets
 export(EXPORT libmemcached-targets NAMESPACE libmemcached::)
 install(EXPORT libmemcached-targets NAMESPACE libmemcached::
         COMPONENT dev
-        DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
 
 install_public_headers(
         libmemcached
index 3e69aad9af329e7aa092b90279323fe8a0ef30c0..91bfe36c53cdb1d6df4bad663231d53d387c8a68 100644 (file)
@@ -45,4 +45,4 @@ install(TARGETS libmemcachedprotocol EXPORT libmemcachedprotocol-targets
 export(EXPORT libmemcachedprotocol-targets NAMESPACE libmemcached::)
 install(EXPORT libmemcachedprotocol-targets NAMESPACE libmemcached::
         COMPONENT dev
-        DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
index 88f1e8dfe13786607d7d1c196167815a600fdfa0..d99b065edfb1c6bf1c5026dcb74b5c485bf6d034 100644 (file)
@@ -48,4 +48,4 @@ install(TARGETS libmemcachedutil EXPORT libmemcachedutil-targets
 export(EXPORT libmemcachedutil-targets NAMESPACE libmemcached::)
 install(EXPORT libmemcachedutil-targets NAMESPACE libmemcached::
         COMPONENT dev
-        DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
index a295562328e9830f27021ec3b14ccb4dba61a3b1..306168afe056569a65d2cf9cd4698b039862d488 100644 (file)
@@ -27,7 +27,7 @@ endif()
 
 configure_package_config_file(libmemcached-config.cmake.in
         libmemcached-config.cmake
-        INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake/)
+        INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
 write_basic_package_version_file(libhashkit-version.cmake
         VERSION ${LIBHASHKIT_VERSION}
         COMPATIBILITY SameMajorVersion)
@@ -47,4 +47,4 @@ install(FILES
         ${CMAKE_CURRENT_BINARY_DIR}/libmemcachedprotocol-version.cmake
         ${CMAKE_CURRENT_BINARY_DIR}/libmemcachedutil-version.cmake
         COMPONENT dev
-        DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake/)
+        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/)