From c0d9ef156af1c46de2118f695d282ddcba1173f3 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 20 Dec 2024 14:30:18 -0600 Subject: [PATCH] Install CMake config to architecture-specific location As an architecture-specific CMake project, the CMake config files should be installed to an architecture-specific location. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5442b2a4..00248b88 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,7 @@ set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated") set(version_config "${generated_dir}/${PROJECT_NAME}ConfigVersion.cmake") set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake") set(targets_export_name "${PROJECT_NAME}Targets") -set(config_install_dir "share/${PROJECT_NAME}/cmake") +set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake") # Include module with fuction 'write_basic_package_version_file' include(CMakePackageConfigHelpers)