Skip to content

Commit 62b5b39

Browse files
authored
Merge pull request #3974 from Flamefire/20251024174300_new_pr_cmakemake
Set verbosity level for CMake > 3.16
2 parents e88a534 + 6c29eb8 commit 62b5b39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

easybuild/easyblocks/generic/cmakemake.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ def configure_step(self, srcdir=None, builddir=None):
263263
install_target = os.path.join(install_target, install_target_subdir)
264264
options = {'CMAKE_INSTALL_PREFIX': install_target}
265265

266+
if self.cmake_version >= '3.16':
267+
# Avoid some software using a lower log level than the default if this is unset
268+
options['CMAKE_MESSAGE_LOG_LEVEL'] = 'STATUS'
269+
266270
if self.installdir.startswith('/opt') or self.installdir.startswith('/usr'):
267271
# https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
268272
localstatedir = os.path.join(self.installdir, 'var')

0 commit comments

Comments
 (0)