add line in cmake to edit Makefile definition

411 views Asked by At

In my cmake file, I am specifying add_definitions ( -DBOOST_SIGNALS_NO_DEPRECATION_WARNING ). However, I am still seeing the 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]. How do I properly define BOOST_SIGNALS_NO_DEPRECATION_WARNING?

edit

This cmake file generates a make file. I get the error during the execution of the Makefile. I can't edit the CMakeLists.txt file. Is it possible to set this flag to be on for the generated Makefile using a cmake file?

0

There are 0 answers