]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Do not warn about not finding CGAL 13726/head
authorMatthias Maier <tamiko@43-1.org>
Thu, 12 May 2022 22:40:02 +0000 (17:40 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 12 May 2022 22:48:51 +0000 (17:48 -0500)
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.

cmake/modules/FindCGAL.cmake

index 34af36d89a16c210c615433a5951932dd8b09008..fb4e7cde03bc81bbb7a1cc1a277f994afa8cb728 100644 (file)
@@ -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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.