From 30141b2fb7bf3800c0f4374d9adfd23eb40ed275 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 17 Apr 2020 07:17:05 +0200 Subject: 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 Reviewed-by: Simon Hausmann --- cmake/QtBuild.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.3