Skip to content

Commit

Permalink
quiet OpenCV find_package
Browse files Browse the repository at this point in the history
This avoids printing a lengthy and maybe surprising error message:

CMake Warning at examples/CMakeLists.txt:39 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.
  • Loading branch information
upsj committed Jun 16, 2021
1 parent fc06232 commit c34248e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if(GINKGO_BUILD_EXTLIB_EXAMPLE)
list(APPEND EXAMPLES_LIST external-lib-interfacing)
endif()

find_package(OpenCV)
find_package(OpenCV QUIET)
if(OpenCV_FOUND)
list(APPEND EXAMPLES_LIST heat-equation)
endif()
Expand Down

0 comments on commit c34248e

Please sign in to comment.