在我的cmake文件中,我指定add_definitions ( -DBOOST_SIGNALS_NO_DEPRECATION_WARNING )
。但是,我仍然看到警告warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
。如何正确定义BOOST_SIGNALS_NO_DEPRECATION_WARNING
?
修改
此cmake文件生成一个make文件。我在执行Makefile时遇到错误。我无法编辑CMakeLists.txt文件。是否可以使用cmake文件为生成的Makefile设置此标志?