Skip to content

Commit

Permalink
Forcing DBoW2 to also use OpenCV 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icoderaven committed Oct 4, 2017
1 parent dcf602b commit d340ca0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Thirdparty/DBoW2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ set(SRCS_DUTILS
DUtils/Random.cpp
DUtils/Timestamp.cpp)

find_package(OpenCV 3.0 QUIET)
set(OpenCV_DIR "$ENV{OpenCV_DIR}")
find_package(OpenCV 3.3.0 REQUIRED)
if(NOT OpenCV_FOUND)
find_package(OpenCV 2.4.3 QUIET)
if(NOT OpenCV_FOUND)
message(FATAL_ERROR "OpenCV > 2.4.3 not found.")
endif()
message(FATAL_ERROR "OpenCV 3.3.0 not found.")
endif()

add_library(DBoW2 SHARED ${SRCS_DBOW2} ${SRCS_DUTILS})
Expand Down

0 comments on commit d340ca0

Please sign in to comment.