This should probably be filed as a bug report ticket on rosbuild (sounds like the target name generation needs to be different): https://code.ros.org/trac/ros/newticket?component=ros&type=defect&&ros cheers, Ken On Wed, Sep 14, 2011 at 8:39 AM, Weißhardt, Florian wrote: > Hi, > > I am using the rosbuild_add_roslaunch_check() macro from rosbuild to test > launch files. It is a great tool which is very useful and works fine. The > problem I am facing is that it is not possible to declare two tests of the > same launch file with different environment variables. > > E.g. I would like to use: >     rosbuild_add_roslaunch_check(ros/launch/mylaunch.launch VAR1=foo) >     rosbuild_add_roslaunch_check(ros/launch/mylaunch.launch VAR1=bar) > > but this ends up in an error: >     CMake Error: Attempt to add a custom rule to output > ".../roslaunch_check_ros_launch_mylaunch.launch.rule" which already has a > custom rule. >     -- Configuring incomplete, errors occurred! >     make: *** [all] Error 1 > > Is there a way to use the macro multiple times for the same launch file with > different environment variables? Are there more use cases (other than mine) > that require an extension of this macro? > > Looking forwards to your opinions. > > Best regards, > Florian > > > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > >