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

CMake search path

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

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
1

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

Dirk Thomas gravatar image

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

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

edit flag offensive delete link more

Comments

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 -0500 )edit
1

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 -0500 )edit

Question Tools

Stats

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

Seen: 488 times

Last updated: Jun 10 '13