当前位置:网站首页>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
边栏推荐
- HTB-Arctic
- NFT: how to improve rentable NFT (erc-4907)
- Dynamic planning learning notes
- SAP FICO 第三节 BDC和LTMC导入S4财务科目
- R language uses data.table function to create data.table data (use: operator to create continuous numeric vector)
- Amazoncaptcha bypasses Amazon IP verification code with 95% success rate
- [daily practice] day (14)
- leetcode/整数除法
- Detailed annotation and analysis of start.s of uboot
- (2022牛客多校二)L-Link with Level Editor I(动态规划)
猜你喜欢

剑指 Offer 36. 二叉搜索树与双向链表
![(16)[系统调用]追踪系统调用(3环)](/img/b0/011351361135fd9f8e2d0d31749f73.png)
(16)[系统调用]追踪系统调用(3环)

(Niuke multi school I in 2022) i-chiitoitsu (expected DP)

Pdf snapshot artifact
![(14) [driver development] configuration environment vs2019 + wdk10 write XP driver](/img/90/0d94d26be8128d77de65919763fda5.png)
(14) [driver development] configuration environment vs2019 + wdk10 write XP driver

10. Rendering Basics

【每日一练】day(14)
![[node] the service port is occupied error: listen eaddinuse: address already in use::: 9000- how to close the port started by node](/img/06/b90fa310158669696f94f79ef4cc5a.png)
[node] the service port is occupied error: listen eaddinuse: address already in use::: 9000- how to close the port started by node

Req.body in node.express is always undefind

Unity model simplification / consolidation one click plug-in
随机推荐
Cout format output common functions and flags summary
ERA5数据集说明
MFC IniFile Unicode mode reading method
Function template learning record
Amazoncaptcha 95%成功率绕过亚马逊IP验证码
基于ISO13209(OTX)实现EOL下线序列
sqlilabs less-28~less-8a
嵌入式c语言开发之宏定义求两个数的最大值的使用技巧
Calculate BDP value and wnd value
Amazoncaptcha bypasses Amazon IP verification code with 95% success rate
Daily question brushing record (XXVIII)
Sword finger offer 45. arrange the array into the smallest number
R language uses wilcox.test function to perform Wilcox signed rank test to obtain confidence interval of population median (set conf.level parameter to specify confidence level and size of confidence
The macro definition of embedded C language development and the skills of finding the maximum value of two numbers
HTB-Devel
Data too long for column ‘data‘ at row 1以及设置成longblob造成的乱码解决。node-mysql
SAP FICO section III BDC and ltmc import S4 financial account
ROI pooling and ROI align
New discovery of ROS callback function
What are the ways to realize web digital visualization?