ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Yes you can you the set_target_properties command to set many things including compiler flags just for one target.

You would add:

set_target_properties(<your_binary> PROPERTIES COMPILE_FLAGS "<your custom flags>" )

See the CMake documentation for more details.