Skip to content

Commit

Permalink
[Bug Fix] Update Fastdeploy.cmake with find opencv package NO_DEFAULT…
Browse files Browse the repository at this point in the history
…_PATH (#424)

Update OpenCV Cmake with NO_DEFAULT_PATH
  • Loading branch information
felixhjh committed Oct 24, 2022
1 parent a823d4e commit b53572d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FastDeploy.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if(ENABLE_VISION)
endif()
# Win/Linux/Mac
else()
find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR})
find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR} NO_DEFAULT_PATH)
list(APPEND FASTDEPLOY_INCS ${OpenCV_INCLUDE_DIRS})
list(APPEND FASTDEPLOY_LIBS ${OpenCV_LIBS})
endif()
Expand Down

0 comments on commit b53572d

Please sign in to comment.