diff --git a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt index 067ecb4f0a8..ab941e27a65 100644 --- a/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/qtquickapplication/CMakeLists.txt @@ -44,6 +44,7 @@ set(PROJECT_SOURCES if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) qt_add_executable(%{ProjectName} + MANUAL_FINALIZATION ${PROJECT_SOURCES} ) @if %{HasTranslation} @@ -79,4 +80,5 @@ set_target_properties(%{ProjectName} PROPERTIES if(QT_VERSION_MAJOR EQUAL 6) qt_import_qml_plugins(%{ProjectName}) + qt_finalize_executable(%{ProjectName}) endif() diff --git a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists.txt b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists.txt index 8edfe2de599..c4e7f757dd1 100644 --- a/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists.txt +++ b/share/qtcreator/templates/wizards/projects/qtwidgetsapplication/CMakeLists.txt @@ -48,6 +48,7 @@ set(PROJECT_SOURCES if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) qt_add_executable(%{ProjectName} + MANUAL_FINALIZATION ${PROJECT_SOURCES} ) @if %{HasTranslation} @@ -77,3 +78,7 @@ set_target_properties(%{ProjectName} PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} ) + +if(QT_VERSION_MAJOR EQUAL 6) + qt_finalize_executable(%{ProjectName}) +endif()