aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qtbase/fix_deploy_windows.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/qtbase/fix_deploy_windows.patch')
-rw-r--r--vcpkg/ports/qtbase/fix_deploy_windows.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/qtbase/fix_deploy_windows.patch b/vcpkg/ports/qtbase/fix_deploy_windows.patch
new file mode 100644
index 0000000..2d2f46f
--- /dev/null
+++ b/vcpkg/ports/qtbase/fix_deploy_windows.patch
@@ -0,0 +1,26 @@
+diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake
+index 8a0d07feac..0e6a720c20 100644
+--- a/src/corelib/Qt6CoreMacros.cmake
++++ b/src/corelib/Qt6CoreMacros.cmake
+@@ -2977,17 +2977,19 @@ function(_qt_internal_setup_deploy_support)
+ if(CMAKE_HOST_WIN32)
++ if(CMAKE_CROSSCOMPILING AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
+- if(CMAKE_CROSSCOMPILING)
+ set(qt_paths_ext ".bat")
++ elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
++ set(qt_paths_ext ".debug.bat")
+ else()
+ set(qt_paths_ext ".exe")
+ endif()
+ else()
+ set(qt_paths_ext "")
+ endif()
+
+
+
+ set(target_qtpaths_path "")
+- set(qtpaths_prefix "${QT6_INSTALL_PREFIX}/${QT6_INSTALL_BINS}")
++ set(qtpaths_prefix "${QT6_INSTALL_PREFIX}/tools/Qt6/bin")
+ get_property(qt_major_version TARGET "${target}" PROPERTY INTERFACE_QT_MAJOR_VERSION)
+ if(qt_major_version)
+ set(target_qtpaths_with_major_version_path