summaryrefslogtreecommitdiffstats
path: root/src/entrypoint
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-11-05 10:55:48 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-11-05 14:52:26 +0100
commit2c070b6f4d24c56a37d5de71e40d435030254be9 (patch)
tree4cc3e3eab4274c0e61e7637e4b4401c601a5af74 /src/entrypoint
parente5ebc28764979f00f1ce3aeb8b2d44b5cadb93c5 (diff)
Fix EntryPointMinGW32Target.cmake to be found in top-level build
This amends commit 67dadc7e3428169778102a6dfab47e2e48c8d17e. We need to copy EntryPointMinGW32Target.cmake to the build dir. The variable config_install_dir contains path relative to the install prefix, and the copy command needs one relative to the build dir (or an absolute one). Pick-to: 6.2 Fixes: QTBUG-97919 Change-Id: I4e3d735edfb69e27c248191b892422cef572258e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/entrypoint')
-rw-r--r--src/entrypoint/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entrypoint/CMakeLists.txt b/src/entrypoint/CMakeLists.txt
index 755f12c821..1dc957d82a 100644
--- a/src/entrypoint/CMakeLists.txt
+++ b/src/entrypoint/CMakeLists.txt
@@ -30,8 +30,10 @@ if(MINGW)
# In prefix builds we also need to copy the file into the build config directory, so that the
# build-dir Qt6Config.cmake finds the files when building other repos in a top-level build.
if(QT_WILL_INSTALL)
+ get_filename_component(absolute_config_install_dir "${config_install_dir}" ABSOLUTE
+ BASE_DIR "${QT_BUILD_DIR}")
file(COPY "${CMAKE_CURRENT_BINARY_DIR}/${mingw32target_config_file}"
- DESTINATION "${config_install_dir}")
+ DESTINATION "${absolute_config_install_dir}")
endif()
include("${CMAKE_CURRENT_BINARY_DIR}/${mingw32target_config_file}")
set(extra_cmake_includes_arg EXTRA_CMAKE_INCLUDES "${mingw32target_config_file}")