From: Matthias Maier Date: Thu, 12 May 2022 22:40:02 +0000 (-0500) Subject: CMake: Do not warn about not finding CGAL X-Git-Tag: v9.4.0-rc1~225^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13726%2Fhead;p=dealii.git CMake: Do not warn about not finding CGAL Newer CMake versions (encountered with CMake 3.20) seem to warn very verbosely about not finding a package. Let's add the "QUIET" keyword to the find_package() call to silence the warning. --- diff --git a/cmake/modules/FindCGAL.cmake b/cmake/modules/FindCGAL.cmake index 34af36d89a..fb4e7cde03 100644 --- a/cmake/modules/FindCGAL.cmake +++ b/cmake/modules/FindCGAL.cmake @@ -32,7 +32,7 @@ IF(DEAL_II_HAVE_CXX17) # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/) SET(CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE ON) - FIND_PACKAGE(CGAL) + FIND_PACKAGE(CGAL QUIET) # Check version manually. Older binary distros don't do this properly. IF(CGAL_MAJOR_VERSION LESS 5) SET(CGAL_FOUND FALSE)