Skip to content

Commit

Permalink
[build] Use a less strict criteria to detect the minimal optional Ope…
Browse files Browse the repository at this point in the history
…nCV dependency openMVG#750 openMVG#1348
  • Loading branch information
pmoulon committed Jul 17, 2018
1 parent d1de788 commit 1ce79d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ endif()
# - only external and enabled only if OpenMVG_USE_OPENCV is set to ON
# ==============================================================================
if (OpenMVG_USE_OPENCV)
find_package( OpenCV 3.0 QUIET )
if (NOT OpenCV_FOUND)
message(STATUS "OpenCV was not found. Disabling OpenCV support.")
find_package( OpenCV QUIET )
if (NOT OpenCV_FOUND OR OpenCV_VERSION VERSION_LESS "3.0.0")
message(STATUS "OpenCV was not found (note that OpenCV version >= 3.0.0 is required). -> Disabling OpenCV support.")
UPDATE_CACHE_VARIABLE(OpenMVG_USE_OPENCV OFF)
UPDATE_CACHE_VARIABLE(OpenMVG_USE_OCVSIFT OFF)
endif (NOT OpenCV_FOUND)
endif (OpenMVG_USE_OPENCV)
endif()
endif()


# ==============================================================================
Expand Down

0 comments on commit 1ce79d2

Please sign in to comment.