From 95374a0a5bd0fec1b26b39ee9fc8512560146d91 Mon Sep 17 00:00:00 2001 From: Julien Cortial Date: Mon, 22 Apr 2024 17:40:29 +0200 Subject: [PATCH] Make FindScotch module respect QUIET CMAKE_REAUIRED_QUIET must be set to make `check_function_exists` and `check_c_source_runs` quiet as well. --- cmake/modules/FindSCOTCH.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/modules/FindSCOTCH.cmake b/cmake/modules/FindSCOTCH.cmake index 4fd31c4fe..6d5c2707c 100644 --- a/cmake/modules/FindSCOTCH.cmake +++ b/cmake/modules/FindSCOTCH.cmake @@ -51,6 +51,8 @@ # (To distribute this file outside of Morse, substitute the full # License text for the above reference.) +set(CMAKE_REQUIRED_QUIET SCOTCH_FIND_QUIETLY) + if (NOT SCOTCH_FOUND) set(SCOTCH_DIR "" CACHE PATH "Installation directory of SCOTCH library") if (NOT SCOTCH_FIND_QUIETLY) @@ -367,3 +369,5 @@ find_package_handle_standard_args(SCOTCH DEFAULT_MSG # # TODO: Add possibility to check for specific functions in the library # + +unset(CMAKE_REQUIRED_QUIET)