Commit 899159d0 authored by Cédric Traizet's avatar Cédric Traizet

COMP: don't update search path on windows

parent fc3bdc9a
Pipeline #2618 failed with stages
in 9 minutes and 57 seconds
......@@ -105,7 +105,7 @@ 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)
if(UNIX AND OpenCV_VERSION_MAJOR EQUAL 4)
get_filename_component(OPENCV_SEARCH_PATH "${OPENCV_SEARCH_PATH}" PATH)
endif()
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