サポートされる CMake のバージョン

cmake_minimum_required() は、プロジェクトを正常に設定するために必要な CMake の最小バージョンを指定します。また、プロジェクトのCMake ポリシー設定を更新し、CMake の後方互換性動作のさまざまな側面を制御します。

Qt プロジェクトでは、cmake_minimum_required コマンドでバージョン3.16 以降を設定する必要があります。

プロジェクトの設定に使用するCMakeの実際のバージョンは、ターゲットプラットフォームにも依存します。ほとんどのターゲットプラットフォームでは、3.22 です。

© 2025 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.