From ec000a4ae953b066c4fbd0eee5459d518f0205c1 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Thu, 29 Jan 2026 11:09:45 -0500 Subject: [PATCH] build: Pass CMAKE_INSTALL_LIBDIR to qm_install_package subprocess Fixes find_package() failures on Fedora (lib64) and Debian multiarch systems by passing CMAKE_INSTALL_LIBDIR to the subprocess, ensuring the package installs to the same location where the parent expects to find it. --- cmake/modules/private/InstallPackage.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/modules/private/InstallPackage.cmake b/cmake/modules/private/InstallPackage.cmake index 70174bc..f067de5 100644 --- a/cmake/modules/private/InstallPackage.cmake +++ b/cmake/modules/private/InstallPackage.cmake @@ -101,6 +101,7 @@ function(qm_install_package _name) execute_process( COMMAND ${CMAKE_COMMAND} -S ${_src_dir} -B ${_build_dir} ${_extra_args} ${_build_type} + "-DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}" "-DCMAKE_INSTALL_PREFIX=${_install_dir}" ${FUNC_CONFIGURE_ARGS} OUTPUT_FILE ${_log_file} ERROR_FILE ${_log_file} @@ -150,4 +151,4 @@ function(qm_install_package _name) if(FUNC_RESULT_PATH) set(${FUNC_RESULT_PATH} ${_install_cmake_dir} PARENT_SCOPE) endif() -endfunction() \ No newline at end of file +endfunction()