From 46e176b1bad27c4fe15d5d525e6e8d1ee3c37ad0 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Wed, 24 Apr 2019 02:40:57 +0300 Subject: [PATCH] Fix cmake install path cmake files for architecture-dependent packages must be inside libdir/package_name Source: Timo Gurr (https://git.exherbo.org/arbor.git/tree/packages/net-libs/bctoolbox/files) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29f3eb6c..207d3f5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,7 +185,7 @@ configure_file(cmake/BcToolboxCMakeUtils.cmake "${CMAKE_CURRENT_BINARY_DIR}/BcTo configure_file(cmake/BcGitVersion.cmake "${CMAKE_CURRENT_BINARY_DIR}/BcGitVersion.cmake" COPYONLY) configure_file(cmake/gitversion.h.in "${CMAKE_CURRENT_BINARY_DIR}/gitversion.h.in" COPYONLY) -set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake") +set(CONFIG_PACKAGE_LOCATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}") install(EXPORT ${EXPORT_TARGETS_NAME}Targets FILE BcToolboxTargets.cmake DESTINATION ${CONFIG_PACKAGE_LOCATION}