Commit 2387d51b authored by Cédric Traizet's avatar Cédric Traizet

COMP: update opencv search path relative to the include dir in v4

parent 165560a1
Pipeline #2613 failed with stages
in 61 minutes and 12 seconds
......@@ -104,6 +104,10 @@ endif()
if(NOT OPENCV_SEARCH_PATH)
get_filename_component(OPENCV_SEARCH_PATH "${opencv_INCLUDE_DIR}" PATH)
# include dir is include/opencv4 in v4
if(OpenCV_VERSION_MAJOR EQUAL 4)
get_filename_component(OPENCV_SEARCH_PATH "${OPENCV_SEARCH_PATH}" PATH)
endif()
endif()
# Prefer the static library.
......
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