QT_NO_STANDARD_PROJECT_SETUP

これ以降、qt_standard_project_setup() を呼び出しても、いかなる変更も行われないようにします。

この変数は Qt 6.3 で導入されました。

qt_standard_project_setup()コマンドは、通常、プロジェクトの最上位にある `CMakeLists.txt ` ファイル内で呼び出されます。場合によっては、そのようなプロジェクトが、より大規模なプロジェクト階層の子プロジェクトとして組み込まれることがあります。 親プロジェクトは、子プロジェクトがセットアップに変更を適用することを防止したい場合があります。親プロジェクトは、add_subdirectory()、FetchContent_MakeAvailable()、または CMake が提供するその他の同様のメソッドを介して子プロジェクトを取り込む前に、QT_NO_STANDARD_PROJECT_SETUP をTRUE に設定することで、これを実現できます。

qt_standard_project_setup()も参照してください 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.