From c34248e821caf3f9e56ea0f093a8be2b129fb100 Mon Sep 17 00:00:00 2001 From: Tobias Ribizel Date: Wed, 16 Jun 2021 11:34:13 +0200 Subject: [PATCH] quiet OpenCV find_package 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. --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 81f71466cc3..f895f86005b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -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()