Files
libamqpcpp/0001-Use-GNUInstallDirs-cmake-module.patch

33 lines
1.2 KiB
Diff

From 1ed93508801870bb734eb663f6592efbbfbd263d Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
Date: Fri, 24 Sep 2021 15:24:35 +0300
Subject: [PATCH] Use GNUInstallDirs cmake module
Some Linux distributions prefer to use /usr/lib64 destination for libraries at
64bit architectures. To be as generic as possible, use GNUInstallDirs module to
resolve correct destination paths.
The paths can be overrided from the command line as the following:
cmake .. -DCMAKE_INSTALL_LIBDIR:PATH=lib
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index edc8872..8f25723 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,7 +115,7 @@ install(DIRECTORY include/amqpcpp/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/amqpc
FILES_MATCHING PATTERN "*.h")
install(FILES include/amqpcpp.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-install(EXPORT ${PROJECT_NAME}Config DESTINATION cmake)
+install(EXPORT ${PROJECT_NAME}Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/amqpcpp")
export(TARGETS ${PROJECT_NAME} FILE ${PROJECT_NAME}Config.cmake)
set(DEST_DIR "${CMAKE_INSTALL_PREFIX}")
--
2.46.1