Added OpenCV minimal versions (#19231)

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2023-08-17 16:45:01 +04:00
1 parent 3e0f529700
commit 75b48e9cdc
8 files changed
+21 -12

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ endif()
# remove OpenCV related sources
find_package(OpenCV QUIET COMPONENTS core imgcodecs)
if(NOT OpenCV_FOUND)
if(NOT OpenCV_FOUND OR NOT OpenCV_VERSION VERSION_GREATER_EQUAL 3)
list(REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/ShapeInference.cpp")
endif()