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

Revision history [back]

What worked for me is to append to CMAKE_MODULE_PATH right before trying to find packages the value of CMAKE_PREFIX_PATH which can be set by the user as an environmental variable before invoking catkin build. Hence:

list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH})

Verify

message(STATUS "CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")

This made the problem go away.

click to hide/show revision 2
No.2 Revision

What worked for me is to append to CMAKE_MODULE_PATH right before trying to find packages the value of CMAKE_PREFIX_PATH which can be set by the user as an environmental variable before invoking catkin build. Hence:

list(APPEND CMAKE_MODULE_PATH ${CMAKE_PREFIX_PATH})

${CMAKE_PREFIX_PATH})

Verify

# Verify message(STATUS "CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")

"CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}")

This made the problem go away.