diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-19 16:34:46 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-19 16:41:34 +0200 |
commit | 4da14d64f1b879545d9676af38ccc089a31da4e1 (patch) | |
tree | 1828927d794f26a2ed7fcbf15487fecb14724c08 /src/corelib | |
parent | b9bdea3b07b6fcf7a81c923db85d1e191979547d (diff) |
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 c3fee0d984e59cee3ab6d069011015dd850be98f
Task-number: QTBUG-87661
Change-Id: I03bbb1451de8e54be4e075f878ed104c287aa93f
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/Qt6CoreMacros.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index 77c3128d52..65ed95f0da 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -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" |