Skip to content

Commit

Permalink
[fix] # Win/Linux/Mac specified opencv path unable to take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoII authored Sep 28, 2022
1 parent 6eb4028 commit 68e049d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/opencv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ if(OPENCV_DIRECTORY)
endif()
# Win/Linux/Mac
else()
set(OpenCV_DIR ${OPENCV_DIRECTORY})
find_package(OpenCV REQUIRED PATHS ${OPENCV_DIRECTORY})
include_directories(${OpenCV_INCLUDE_DIRS})
list(APPEND DEPEND_LIBS ${OpenCV_LIBS})
Expand Down

0 comments on commit 68e049d

Please sign in to comment.