- Qt 6.9
- Qt Core
- CMake Variables in Qt6 Core
- QT_NO_STANDARD_PROJECT_SETUP
- Qt 6.9.3 Reference Documentation

# QT_NO_STANDARD_PROJECT_SETUP

Prevents subsequent calls to qt_standard_project_setup() from making any changes.

This variable was introduced in Qt 6.3.

The qt_standard_project_setup() command is typically called in the top level `CMakeLists.txt` file of a project. In some scenarios, such a project may be absorbed as a child project of a larger project hierarchy. A parent project may want to prevent any child project from applying changes to the setup. The parent project can achieve this by setting `QT_NO_STANDARD_PROJECT_SETUP` to `TRUE` before bringing in the child project via add_subdirectory(), FetchContent_MakeAvailable(), or other similar methods provided by CMake.

See also qt_standard_project_setup().