From b22f7817f0d8d29c16ffb087f43db1d4e710172b Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Sun, 10 Sep 2023 16:01:12 -0400 Subject: [PATCH] build(cmake): use Qt deployment functions only with Qt 6.5.1 --- src/app/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index a314d63..606cc9f 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -13,8 +13,8 @@ endif() set(PROJECT_EXECUTABLE_NAME "${PROJECT_OUTPUT_NAME}${CMAKE_EXECUTABLE_SUFFIX}") message(STATUS "Project executable name: ${PROJECT_EXECUTABLE_NAME}") -# Only support installing runtime dependencies with Qt >=6.5.0. -if(Qt${QT_VERSION_MAJOR}Widgets_VERSION VERSION_GREATER_EQUAL "6.5.0") +# Only support installing runtime dependencies with Qt >=6.5.1 (see QTBUG-111741). +if(Qt${QT_VERSION_MAJOR}Widgets_VERSION VERSION_GREATER_EQUAL "6.5.1") set(use_qt_cmake_commands TRUE) qt_standard_project_setup() @@ -60,6 +60,7 @@ qt_deploy_runtime_dependencies( EXECUTABLE \"$\" BIN_DIR . NO_TRANSLATIONS + NO_COMPILER_RUNTIME VERBOSE )") endif()