From: Matthias Maier Date: Tue, 29 Nov 2022 18:45:57 +0000 (-0600) Subject: CMake: silence configure warnings for ArborX and Ginkgo X-Git-Tag: v9.5.0-rc1~788^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54a135af819ba49a3c21595e2a4a509b88fd6d75;p=dealii.git CMake: silence configure warnings for ArborX and Ginkgo Both packages install their own package config files. Thus, if they are not installed `find_package()` throws a warning. --- diff --git a/cmake/modules/FindDEAL_II_ARBORX.cmake b/cmake/modules/FindDEAL_II_ARBORX.cmake index 0dccbe70cf..7ebb9fe32f 100644 --- a/cmake/modules/FindDEAL_II_ARBORX.cmake +++ b/cmake/modules/FindDEAL_II_ARBORX.cmake @@ -27,7 +27,7 @@ set(ARBORX_DIR "" CACHE PATH "An optional hint to an ArborX installation") set_if_empty(ARBORX_DIR "$ENV{ARBORX_DIR}") -find_package(ArborX +find_package(ArborX QUIET HINTS ${ARBORX_DIR} ${ArborX_DIR} $ENV{ArborX_DIR} ) diff --git a/cmake/modules/FindDEAL_II_GINKGO.cmake b/cmake/modules/FindDEAL_II_GINKGO.cmake index aceb8db189..0d15f32e3c 100644 --- a/cmake/modules/FindDEAL_II_GINKGO.cmake +++ b/cmake/modules/FindDEAL_II_GINKGO.cmake @@ -32,7 +32,7 @@ set_if_empty(GINKGO_DIR "$ENV{GINKGO_DIR}") # subsequent configuration to fail. # set(_cmake_module_path ${CMAKE_MODULE_PATH}) -find_package(Ginkgo +find_package(Ginkgo QUIET HINTS ${GINKGO_DIR} ${Ginkgo_DIR} $ENV{Ginkgo_DIR} ) set(CMAKE_MODULE_PATH ${_cmake_module_path})