严重性 代码 说明 项目 文件 行 禁止显示状态 警告 CMake Warning (dev) in E:\Demo\SARibbon-master\src\SARibbonBar\CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.24) should be added at the top of the file. The version specified may be lower if you wish to support older CMake versions for this project. For more information run "cmake --help-policy CMP0000". This warning is for project developers. Use -Wno-dev to suppress it. E:\Demo\SARibbon-master\src\SARibbonBar\CMakeLists.txt 1
时间: 2024-04-05 22:33:40 浏览: 168
CMake+opencv编译时Download: opencv_ffmpeg.dll、ippicv等文件
这个警告是关于在E:\Demo\SARibbon-master\src\SARibbonBar\CMakeLists.txt文件中缺少cmake_minimum_required命令的问题。这个命令应该在文件的顶部添加,例如cmake_minimum_required(VERSION 3.24)。如果你想支持旧版本的CMake,可以将指定的版本号调低。这个警告是给项目开发者的提示,如果你想忽略它,可以使用-Wno-dev参数。
阅读全文