From 6c29eb894ad0fc2040bb48a56addd7adf7f9409c Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 24 Oct 2025 17:43:00 +0200 Subject: [PATCH] Set verbosity level for CMake > 3.16 --- easybuild/easyblocks/generic/cmakemake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easybuild/easyblocks/generic/cmakemake.py b/easybuild/easyblocks/generic/cmakemake.py index acc8a50f3e..a9c04e5dcc 100644 --- a/easybuild/easyblocks/generic/cmakemake.py +++ b/easybuild/easyblocks/generic/cmakemake.py @@ -263,6 +263,10 @@ def configure_step(self, srcdir=None, builddir=None): install_target = os.path.join(install_target, install_target_subdir) options = {'CMAKE_INSTALL_PREFIX': install_target} + if self.cmake_version >= '3.16': + # Avoid some software using a lower log level than the default if this is unset + options['CMAKE_MESSAGE_LOG_LEVEL'] = 'STATUS' + if self.installdir.startswith('/opt') or self.installdir.startswith('/usr'): # https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html localstatedir = os.path.join(self.installdir, 'var')