Skip to content

Commit

Permalink
fix opencv detection, second try
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Oct 17, 2017
1 parent d8193dd commit fd6af0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

find_package(OpenCV QUIET core highgui imgproc imgcodecs)
find_package(OpenCV QUIET COMPONENTS core highgui imgproc imgcodecs)
if(NOT OpenCV_FOUND)
find_package(OpenCV REQUIRED core highgui imgproc)
find_package(OpenCV REQUIRED COMPONENTS core highgui imgproc)
endif()

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
Expand Down

0 comments on commit fd6af0f

Please sign in to comment.