qt6_standard_project_setup: Don't enable AUTORCC

We discourage using AUTORCC, so don't make it the default for our
"standard project setup".

Pick-to: 6.3
Task-number: QTBUG-87643
Task-number: QTBUG-100209
Change-Id: I2715ec561266bfed5ea4ac7722ab1f1c8b982788
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2022-01-26 10:20:27 +01:00
parent 8359e44324
commit 7015eafa5c
2 changed files with 3 additions and 3 deletions

View File

@ -2521,7 +2521,7 @@ macro(qt6_standard_project_setup)
# Turn these on by default, unless they are already set. Projects can
# always turn off any they really don't want after we return.
foreach(auto_set IN ITEMS MOC UIC RCC)
foreach(auto_set IN ITEMS MOC UIC)
if(NOT DEFINED CMAKE_AUTO${auto_set})
set(CMAKE_AUTO${auto_set} TRUE)
endif()

View File

@ -54,8 +54,8 @@ call, normally in the top level \c{CMakeLists.txt} file and before any targets
have been defined. It does the following things:
\list
\li The standard CMake variables \c{CMAKE_AUTOMOC}, \c{CMAKE_AUTOUIC} and
\c{CMAKE_AUTORCC} are set to true if they are not already defined.
\li The standard CMake variables \c{CMAKE_AUTOMOC} and \c{CMAKE_AUTOUIC}
are set to true if they are not already defined.
This enables all Qt-related autogen features by default for subsequently
created targets in the current directory scope and below.
\li CMake's \l{GNUInstallDirs} module is automatically included. This defines