当前位置:网站首页>target_compile_features specified unknown feature “cxx_std_14“ for target
target_compile_features specified unknown feature “cxx_std_14“ for target
2022-07-25 06:06:00 【陈 洪 伟】
我用cmake编译某工程时,刚开是提示我需要升级cmake版本到3.13,而我电脑当前的是3.7,于是我投机取巧把CMakeLists.txt中的版本要求给改了
#cmake_minimum_required(VERSION 3.14.1)
cmake_minimum_required(VERSION 3.6)然后再次cmake就不报cmake版本低的错误了,但是出现下面的错误
target_compile_features specified unknown feature "cxx_std_14" for target其实这个也不需要升级cmake,这个可以理解为旧版本的cmake不能识别新的语法,只需要做如下修改就好了。
add_definitions(-std=c++14) #添加这一行
#target_compile_features(${LIBRARY_TARGET_NAME} PUBLIC cxx_std_14) #注释这一行
边栏推荐
- Is the Huatai account opened by qiniu safe to use?
- (15)[驱动开发]过写拷贝
- VO, dto, do, Po distinction and use
- (2022 Niuke multi School II) k-link with bracket sequence I (dynamic planning)
- Unity animator animation and state machine
- Brief introduction of acoustic filter Market
- 剑指 Offer 45. 把数组排成最小的数
- R language Visual scatter diagram, geom using ggrep package_ text_ The repl function avoids overlapping labels between data points (set the hJust parameter to show that labels of all data points are a
- Function template learning record
- [QT] solve the problem of Chinese garbled code output from QT console
猜你喜欢

The computer accesses the Internet normally with the same network cable, and the mobile phone connects to WiFi successfully, but it cannot access the Internet

同条网线电脑正常上网,手机连接wifi成功,但是无法访问互联网

(Niuke multi School II) j-link with arithmetic progress (least square method / three points)
![(14) [driver development] configuration environment vs2019 + wdk10 write XP driver](/img/90/0d94d26be8128d77de65919763fda5.png)
(14) [driver development] configuration environment vs2019 + wdk10 write XP driver

Promise implementation

阻塞队列分析

Daily question brushing record (XXVIII)

Softing pnGate系列网关:将PROFIBUS总线集成到PROFINET网络

基于ISO13209(OTX)实现EOL下线序列

HTB-Beep
随机推荐
Difference between NPX and NPM
leetcode/整数除法
R language data The table package performs aggregation transforms of data packets and calculates the grouping interquartile range (IQR) of dataframe data
[daily practice] day (14)
(16)[系统调用]追踪系统调用(3环)
(2022 Niuke multi school) D-Link with game glitch (SPFA)
sqlilabs less-29
HTB-Devel
What projects can make money online? Is it reliable to be we media?
剖析kubernetes集群内部DNS解析原理
HTB-Optimum
(2022牛客多校二)L-Link with Level Editor I(动态规划)
(15)[驱动开发]过写拷贝
Base64 (conversion between string and Base64 string)
[QT] solve the problem of Chinese garbled code output from QT console
Ceres solver version 1.14 and eigen3.2.9
函数模板学习记录
Baidu, Alibaba, Tencent, who fell first?
PostgreSQL learning 04 PG_ hint_ Plan installation and use, SQL optimization knowledge
Ffmpeg notes (I) fundamentals of audio and video