diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-17 07:17:05 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-04-17 20:42:44 +0200 |
commit | 30141b2fb7bf3800c0f4374d9adfd23eb40ed275 (patch) | |
tree | 8429d886a56bc92f3ea817dc33ecf61aacb6ef3e | |
parent | 9b45ca7411f57385989d43eb70e89e02551dd974 (diff) |
CMake: Fix location of module .pri files for non-prefix builds
In a non-prefix build, the module .pri files must end up in the
mkspecs/modules subdirectory of qtbase's build directory.
Change-Id: I241f4e274d31de7c1e3c2fa8e5e26fb8747f11c5
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | cmake/QtBuild.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 389fb362b8..5fa81fe807 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -2259,7 +2259,7 @@ set(QT_CMAKE_EXPORT_NAMESPACE ${QT_CMAKE_EXPORT_NAMESPACE})") unset(arg_INTERNAL_MODULE) endif() - qt_path_join(pri_target_path ${PROJECT_BINARY_DIR} ${INSTALL_MKSPECSDIR}/modules) + qt_path_join(pri_target_path ${QT_BUILD_DIR} ${INSTALL_MKSPECSDIR}/modules) qt_generate_module_pri_file("${target}" "${pri_target_path}" ${arg_CONFIG_MODULE_NAME} module_pri_files ${arg_INTERNAL_MODULE} |