Technically, any cmake target that needs headers generated from messages needs to depend on the corresponding foo_gencpp cmake target. Otherwise, it will build against debians, and build if make is run with only one thread, but will sometimes fail if the packages with messages (e.g. sensor_msgs) is used from source.
Issue by jonbinney Tuesday May 21, 2013 at 21:57 GMT _Originally opened as https://github.com/sniekum/ar_track_alvar/pull/7_
Technically, any cmake target that needs headers generated from messages needs to depend on the corresponding foo_gencpp cmake target. Otherwise, it will build against debians, and build if make is run with only one thread, but will sometimes fail if the packages with messages (e.g. sensor_msgs) is used from source.
There's a discussion about this problem here: http://answers.ros.org/question/52744/how-to-specify-dependencies-with-foo_msgs-catkin-packages/
_jonbinney included the following code: https://github.com/sniekum/ar_track_alvar/pull/7/commits_