Added OpenCV minimal versions (#19231)
This commit is contained in:
1 parent
3e0f529700
commit
75b48e9cdc
8 files changed
+21
-12
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user