Skip to content

Commit 29bb28f

Browse files
authored
Merge pull request #19 from CreativeCylon/dev/Fix_build_issue_for_linux_qt_prior_to_6_5
Build fix for Qt < 6.5 on Linux
2 parents d519147 + 416c801 commit 29bb28f

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

cmake/devtools_qt_helper.cmake

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,18 @@ if (Qt6_DIR)
7373
)")
7474
else()
7575
# Generate deployment script of Qt binaries and plugins
76-
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
77-
OUTPUT_SCRIPT deploy_script
78-
NO_UNSUPPORTED_PLATFORM_ERROR
79-
NO_TRANSLATIONS
76+
if (QT_VERSION_MAJOR EQUAL 6 AND QT_VERSION_MINOR GREATER_EQUAL 5)
77+
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
78+
OUTPUT_SCRIPT deploy_script
79+
NO_UNSUPPORTED_PLATFORM_ERROR
80+
NO_TRANSLATIONS
81+
)
82+
else()
83+
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
84+
FILENAME_VARIABLE deploy_script
85+
NO_UNSUPPORTED_PLATFORM_ERROR
8086
)
87+
endif()
8188
endif()
8289

8390
install(SCRIPT ${deploy_script} COMPONENT ${component})

0 commit comments

Comments
 (0)