VS报D8021:“/Wno-deprecated-declarations”怎么解决?

用VS2019打开CMake文件夹编译项目工程的时候,VS总报D8021无效的数值参数“/Wno-deprecated-declarations”错误,网上百度Google了好久也没找出原因,想问问各位大佬知道这个错误怎么解决吗?

 

尝试一下:

在工具栏上选择 project  ->properties->configuration properties ->C/C++->Command Line
删除Wno-deprecated-declarations
 

参考:

1、https://phabricator.kde.org/T8056

2、https://blog.csdn.net/typename/article/details/6602650