CMAKE_MINIMUM_REQUIRED

简介: CMAKE_MINIMUM_REQUIRED

语法

CMAKE_MINIMUM_REQUIRED(VERSION <version> LEVEL)点击复制复制失败已复制


作用

定义 cmake 的最低兼容版本。


示例

CMAKE_MINIMUM_REQUIRED(VERSION 2.5 FATAL_ERROR)点击复制复制失败已复制

上述指令的含义是:如果 cmake 版本小于 2.5 , 则出现严重错误, 整个过程中止。

目录
相关文章
Ninja is required to load C++ extensions | 问题解决
Ninja is required to load C++ extensions | 问题解决
kali2022.1The following packages were automatically installed and are no longer required
kali2022.1The following packages were automatically installed and are no longer required
96 1
|
7月前
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target S
107 0
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
332 0
Xcode12适配The linked library is missing one or more architectures required by thi
升级到Xcode12后,运行Release模式后,会提示以下信息
206 0
CMake 3.7.2 or higher is required. You are running version 2.8.12.2
CMake 3.7.2 or higher is required. You are running version 2.8.12.2
292 0
No matching configuration of project :libusb was found.
No matching configuration of project :libusb was found.
615 0
|
Java
编译OpenJDK:invalid configuration Files: machine Files not recognized
编译OpenJDK:invalid configuration Files: machine Files not recognized
119 0
|
编解码 C++ Python
pyHook 转码问题-MouseSwitch() missing 8 required positional arguments...,原因及解决办法
pyHook 转码问题-MouseSwitch() missing 8 required positional arguments...,原因及解决办法
341 0
|
Android开发 C语言
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
最近要编译FFMPEG,但是一真报这个错,我用的是deepin系统。android studio 3.1.2。cmake,gcc,g++都已经安装了,但是编译就过不去,总是报这个错 CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage 很是恼火啊。
10879 0

热门文章

最新文章