mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-22 08:09:28 +08:00
[cmake] optimize opencv.cmake to ensure find_package take affect (#302)
* update reademe_cn link * [fix] # Win/Linux/Mac specified opencv path unable to take effect * Update opencv.cmake
This commit is contained in:
@@ -132,7 +132,8 @@ if(OPENCV_DIRECTORY)
|
||||
endif()
|
||||
# Win/Linux/Mac
|
||||
else()
|
||||
find_package(OpenCV REQUIRED PATHS ${OPENCV_DIRECTORY})
|
||||
set(OpenCV_DIR ${OPENCV_DIRECTORY})
|
||||
find_package(OpenCV REQUIRED PATHS ${OpenCV_DIR})
|
||||
include_directories(${OpenCV_INCLUDE_DIRS})
|
||||
list(APPEND DEPEND_LIBS ${OpenCV_LIBS})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user