编译Sophus时cmake出现警告deprecated-declarations

只需要修改 CMakeLists.txt,增加下面的属性即可。
set(CMAKE_CXX_FLAGS "-Wno-error=deprecated-declarations -Wno-deprecated-declarations ")
这样make时将不再提示这个弃用warning

posted @ 2024-06-20 09:25  阳光天气  阅读(69)  评论(0)    收藏  举报