Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

With the warning from fuerte/Migration

Current best practice: Don't switch environments.

The following might get you out of the jam.

find_package(OpenCV)
IF(NOT OpenCV_FOUND)
    set(OpenCV_DIR /opt/ros/cturtle/stacks/vision_opencv/opencv2/opencv/share/opencv/)
    find_package(OpenCV)
ENDIF(NOT OpenCV_FOUND)

Doesn't promise anything about env variables and the like though, so you may face other challenges later on.

Good luck.