From 50cbc69b57327226426688ee01fbc43877e8011a Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 23 Aug 2019 10:02:09 -0700 Subject: [PATCH] cmake: Use DATAROOTDIR for pkg-config and cmake files. These files do not have any architecture independent data and only headers are installed so it is better to use architecture independent install paths like /usr/share. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aa64540..591ecb64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,13 +160,13 @@ if (SPDLOG_INSTALL) set(project_config_out "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfig.cmake") set(config_targets_file "spdlogConfigTargets.cmake") set(version_config_file "${CMAKE_CURRENT_BINARY_DIR}/spdlogConfigVersion.cmake") - set(export_dest_dir "${CMAKE_INSTALL_LIBDIR}/spdlog/cmake") + set(export_dest_dir "${CMAKE_INSTALL_DATAROOTDIR}/spdlog/cmake") #--------------------------------------------------------------------------------------- # Include files #--------------------------------------------------------------------------------------- install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") - install(TARGETS spdlog spdlog_header_only EXPORT spdlog DESTINATION "${CMAKE_INSTALL_LIBDIR}/spdlog") + install(TARGETS spdlog spdlog_header_only EXPORT spdlog DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/spdlog") #--------------------------------------------------------------------------------------- # Package and version files