[ros-users] rosbuild seems to cache external cmake files
René Ladan
r.c.ladan at gmail.com
Tue Aug 17 11:00:45 UTC 2010
2010/8/17 Ruben Smits <ruben.smits at mech.kuleuven.be>:
> Hi,
>
> I'm creating a package (ros_integration) that exports a cmake file using the
> roslang tag:
> manifest.xml snippet (:
> <export>
> <roslang cmake="${prefix}/cmake/GenerateRTTtypekit.cmake"/>
> </export>
>
> I recently moved the package to a different location and name and now rosbuild
> is giving me problem:
>
> [rosbuild] Building package ros_integration_common_msgs
> [rosbuild] Including /opt/ros/cturtle/ros/core/roscpp/cmake/roscpp.cmake
> [rosbuild] Including /opt/ros/cturtle/ros/core/rospy/cmake/rospy.cmake
> [rosbuild] Including /opt/ros/cturtle/ros/core/roslisp/cmake/roslisp.cmake
> [rosbuild] Including /home/rsmits/ros/kul-ros-
> pkg/stacks/orocos_2.0/trunk/ros_integration/cmake/GenerateRTTtypekit.cmake
> CMake Error at /opt/ros/cturtle/ros/core/rosbuild/public.cmake:400 (message):
> Cannot include non-existent exported cmake file
> /home/rsmits/ros/private-kul-ros-
> pkg/orocos_rtt_ros_integration/cmake/GenerateRTTtypekit.cmake
> Call Stack (most recent call first):
> CMakeLists.txt:12 (rosbuild_init)
>
> Apparently rosbuild is still pointing to the old location of the cmake file.
> How can i make rosbuild forget about the old file? I already tried cleaning up
> the package but that did not work.
>
Did that include (manually) removing the build directory in the package? CMake
uses that directory as a cache for settings and derived Makefiles. Otherwise
creating a new package and copying over just the files you need might work.
Rene
More information about the ros-users
mailing list