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

CMake search path

asked 2013-06-06 08:35:14 -0600

joschu gravatar image

ROS installation somehow sets CMake the search path to point to favor ROS packages in /opt/ros. I want find_package(PCL) to choose the version in /usr/lib rather than /opt/ros/groovy (The ROS version is missing all of the Grabber stuff) How can I prevent this behavior? Is there some environment variable I need to set?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-10 08:08:21 -0600

Dirk Thomas gravatar image

updated 2013-06-10 08:09:44 -0600

CMake uses the environment variable CMAKE_PREFIX_PATH to specify the search path for all find_*() commands.

edit flag offensive delete link more


What variable or file does ROS modify when it gets installed, which adds it to the front of the search path? CMAKE_PREFIX_PATH is unset on my machine.

joschu gravatar image joschu  ( 2013-06-13 10:59:49 -0600 )edit

When you source the setup.bash/sh these environment variables will be set.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-13 11:09:59 -0600 )edit

Question Tools


Asked: 2013-06-06 08:35:14 -0600

Seen: 482 times

Last updated: Jun 10 '13