Skip to content

Commit

Permalink
cmake minor bug: when xfeatures2d of opencv is not found, print corre…
Browse files Browse the repository at this point in the history
…sponding bug information
  • Loading branch information
nkwangyh committed Sep 22, 2017
1 parent 9151df3 commit 0f8ef0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/LibraryConfig.cmake
Expand Up @@ -66,21 +66,21 @@ if(OpenCV_FOUND)
check_include_file_cxx(opencv2/face/facerec.hpp HAVE_OPENCV_CONTRIB)
if(HAVE_OPENCV_CONTRIB)
add_definitions(-DHAVE_OPENCV_CONTRIB)
elseif()
else()
message(STATUS "OPENCV_CONTRIB NOT PRESENT, DISABLING LOTS OF FUNCTIONALITY, SEE https://github.com/opencv/opencv_contrib")
endif()

check_include_file_cxx(opencv2/xfeatures2d/nonfree.hpp HAVE_OPENCV_XFEATURES2D_NONFREE)
if(HAVE_OPENCV_XFEATURES2D_NONFREE)
add_definitions(-DHAVE_OPENCV_XFEATURES2D_NONFREE)
elseif()
else()
message(STATUS "OPENCV_XFEATURES2D_NONFREE NOT PRESENT, DISABLING LOTS OF FUNCTIONALITY, SEE https://github.com/opencv/opencv_contrib")
endif()

check_include_file_cxx(opencv2/cudafeatures2d.hpp HAVE_OPENCV_CUDAFEATURES2D)
if(HAVE_OPENCV_CUDAFEATURES2D)
add_definitions(-DHAVE_OPENCV_CUDAFEATURES2D)
elseif()
else()
message(STATUS "OPENCV_CUDAFEATURES2D NOT PRESENT, DISABLING LOTS OF FUNCTIONALITY")
endif()

Expand Down

0 comments on commit 0f8ef0f

Please sign in to comment.