サポートされるCMakeのバージョン
cmake_minimum_required() は、プロジェクトを正常に構成するために必要な最低CMakeバージョンを指定します。また、CMakeの遡及互換性の動作のさまざまな側面を制御する、プロジェクトのCMakeポリシー設定も更新します。
Qtプロジェクトでは、ポリシー動作が正常に機能するように、cmake_minimum_required コマンドでバージョンを3.16 以降に設定する必要があります。
プロジェクトの構成に実際に使用するべき CMake のバージョンは、ターゲットプラットフォームによっても異なります。ほとんどのターゲットプラットフォームでは、3.25 となります。
© 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.