Add compilation flags to rosdistro
I am trying to add a c++ library to rosdistro.
This project has lots of building definitions which you can modify with the cmake
command, i.e.
cmake ../ -DBUILD_EXAMPLES=true
or cmake ../ -DBUILD_EXAMPLES=false
.
I used bloom-release to create a PR for rosdistro:
However, for the ros buildfarm to successfully build the package I need to set a few definitions, such as BUILD_EXAMPLES=false
.
The ROS preferred solution is to change the default definitions of the package. This, unfortunately, is not possible. For once, the default definitions reflect a common usage and cannot be changed. Another reason is that different definitions may be required for different platforms - different definitions for Ubuntu 16 and Ubuntu 18, etc.
So far, I created a fork with the default definitions modified but that is not a maintainable solution.
Is it possible to set compilation definitions for the ros buildfarm? Somewhere in the rosdistro's kinetic/distribution.yaml file maybe?
Is it possible to define different definitions for different platforms?