当前位置:网站首页>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:08:00 【Chen Hongwei】
I use cmake When compiling a project , I just opened it to remind me that I need to upgrade cmake Version to 3.13, And my current computer is 3.7, So I opportunistic put CMakeLists.txt The version requirements in have been changed
#cmake_minimum_required(VERSION 3.14.1)
cmake_minimum_required(VERSION 3.6)Then again, cmake Don't report cmake The low version is wrong , But the following error occurred
target_compile_features specified unknown feature "cxx_std_14" for targetIn fact, this one doesn't need to be upgraded cmake, This can be understood as the old version cmake Unable to recognize new grammar , Just make the following changes .
add_definitions(-std=c++14) # Add this line
#target_compile_features(${LIBRARY_TARGET_NAME} PUBLIC cxx_std_14) # Comment on this line
边栏推荐
- Vbs script COM object extension and use (3)
- Tutorial: encryption keys in cloud (using golang and CLI)
- Get URL of [url reference]? For the following parameters, there are two ways to get the value of the corresponding parameter name and convert the full quantity to the object structure
- 剑指 Offer 36. 二叉搜索树与双向链表
- Xiaomi 12s UTRA Leica watermark generation online tool
- Req.body in node.express is always undefind
- VO, dto, do, Po distinction and use
- (Niuke multi school I in 2022) i-chiitoitsu (expected DP)
- MATLAB作图实例:5:双轴图
- Leetcode/ number of 1 in the first n digit binary
猜你喜欢

sqlilabs less-29

【每日一练】day(14)

Design of automatic machine dot drawing script based on C language

【Node】服务端口被占用Error: listen EADDRINUSE: address already in use :::9000-如何关闭node启动的端口

Productivity tool in the new era -- flowus information flow comprehensive evaluation

Unity animator animation and state machine

Baidu, Alibaba, Tencent, who fell first?

【C语言】指针和数组的深入理解(第一期)

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

New developments in Data Governance: what is the impact of the EU's Data Governance Research Report on China
随机推荐
Function template learning record
QT qtextedit setting qscrollbar style sheet does not take effect solution
HTB-Arctic
Get URL of [url reference]? For the following parameters, there are two ways to get the value of the corresponding parameter name and convert the full quantity to the object structure
Productivity tool in the new era -- flowus information flow comprehensive evaluation
NFT: how to improve rentable NFT (erc-4907)
Big talk · book sharing | Haas Internet of things device cloud integrated development framework
In depth analysis: is the hottest business model in 2022 linked by 2+1 a legal model?
leetcode/整数除法
Pdf snapshot artifact
Design of automatic machine dot drawing script based on C language
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
对于von Mises distribution(冯·米塞斯分布)的一点心得
[node] the service port is occupied error: listen eaddinuse: address already in use::: 9000- how to close the port started by node
Equal proportion of R language test group: use the prop.test function to test whether the success proportion of the two groups is equal
Idea commonly used 10 shortcut keys
Mechanism and principle of multihead attention and masked attention
Draw Bezier curve through screen interaction
(16)[系统调用]追踪系统调用(3环)
Why is it that all the games are pseudorandom and can't make true random?