From 8e63725f40f4d09129098eadfeb2cb0d21068c67 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 27 Apr 2020 10:24:31 +0200 Subject: [PATCH] CMake: Honor INSTALL_MKSPECSDIR when generating qmodule.pri Change-Id: I3e0cdee30590d6979658ef81978513dd20455516 Reviewed-by: Alexandru Croitor --- cmake/QtBuild.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 1937e1a2fff..025000c9770 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -793,7 +793,7 @@ endfunction() # Creates mkspecs/qmodule.pri which contains private global features among other things. function(qt_generate_global_module_pri_file) - qt_path_join(qmodule_pri_target_path ${PROJECT_BINARY_DIR} mkspecs) + qt_path_join(qmodule_pri_target_path ${PROJECT_BINARY_DIR} ${INSTALL_MKSPECSDIR}) qt_path_join(qmodule_pri_target_path "${qmodule_pri_target_path}" "qmodule.pri") get_target_property(enabled_features GlobalConfig INTERFACE_QT_ENABLED_PRIVATE_FEATURES) @@ -828,7 +828,7 @@ CONFIG += ${private_config_joined} OUTPUT "${qmodule_pri_target_path}" CONTENT "${content}" ) - qt_install(FILES "${qmodule_pri_target_path}" DESTINATION mkspecs) + qt_install(FILES "${qmodule_pri_target_path}" DESTINATION ${INSTALL_MKSPECSDIR}) endfunction() function(qt_generate_qt_conf)