CMake: Provide add_qt_gui_executable for a short time

Until all repos are updated to use qt_add_executable instead.
This is a minimal addition, instead of the previous
QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS approach which did not
work in all cases.

Amends c3fee0d984

Task-number: QTBUG-87661
Change-Id: I03bbb1451de8e54be4e075f878ed104c287aa93f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Alexandru Croitor 2020-10-19 16:34:46 +02:00
parent b9bdea3b07
commit 4da14d64f1
1 changed files with 5 additions and 0 deletions

View File

@ -462,6 +462,11 @@ if(NOT QT_NO_CREATE_VERSIONLESS_FUNCTIONS)
endfunction()
endif()
# Temporarily keep compatibility, until all repositories are migrated.
function(add_qt_gui_executable)
message(AUTHOR_WARNING "Please replace add_qt_gui_executable with qt_add_executable instead. The former will be removed shortly.")
qt6_add_executable(${ARGV})
endfunction()
function(_qt_get_plugin_name_with_version target out_var)
string(REGEX REPLACE "^Qt::(.+)" "Qt${QT_DEFAULT_MAJOR_VERSION}::\\1"