Commit fc29c922 authored by Julien Malik's avatar Julien Malik

COMP: add hint about OpenCV location for MacPort

parent 1f451f26
......@@ -5,7 +5,11 @@ MARK_AS_ADVANCED(OTB_USE_OPENCV)
IF(OTB_USE_OPENCV)
MESSAGE(STATUS " Enabling OpenCV support")
FIND_PACKAGE(OpenCV REQUIRED)
FIND_PACKAGE(OpenCV
REQUIRED
PATHS
/opt/local/lib/cmake # MacPort
)
MESSAGE(STATUS " Found OpenCV ${OpenCV_VERSION_MAJOR}.${OpenCV_VERSION_MINOR}.${OpenCV_VERSION_PATCH}")
MESSAGE(STATUS " OpenCV include directory: ${OpenCV_INCLUDE_DIRS}")
ELSE()
......
......@@ -161,7 +161,12 @@ IF(OTB_USE_EXTERNAL_TINYXML)
ENDIF(OTB_USE_EXTERNAL_TINYXML)
IF(OTB_USE_OPENCV)
FIND_PACKAGE(OpenCV REQUIRED)
FIND_PACKAGE(OpenCV
REQUIRED
PATHS
/opt/local/lib/cmake # MacPort
)
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
ENDIF()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment