Skip to content

Build fix for Qt < 6.5 on Linux #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions cmake/devtools_qt_helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,18 @@ if (Qt6_DIR)
)")
else()
# Generate deployment script of Qt binaries and plugins
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
NO_TRANSLATIONS
if (QT_VERSION_MAJOR EQUAL 6 AND QT_VERSION_MINOR GREATER_EQUAL 5)
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
OUTPUT_SCRIPT deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
NO_TRANSLATIONS
)
else()
qt_generate_deploy_app_script(TARGET ${PROJECT_NAME}
FILENAME_VARIABLE deploy_script
NO_UNSUPPORTED_PLATFORM_ERROR
)
endif()
endif()

install(SCRIPT ${deploy_script} COMPONENT ${component})
Expand Down