diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-27 10:24:31 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-27 16:55:38 +0200 |
commit | 8e63725f40f4d09129098eadfeb2cb0d21068c67 (patch) | |
tree | d1587e1c5c461b1e602e003c8d16677b3fd33696 | |
parent | 469e044f060f3c8240a60fe464595a495657d4c6 (diff) |
CMake: Honor INSTALL_MKSPECSDIR when generating qmodule.pri
Change-Id: I3e0cdee30590d6979658ef81978513dd20455516
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | cmake/QtBuild.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 1937e1a2ff..025000c977 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) |