dependencies/openmp: use mlog.warning instead of open coding

It was probably done this way originally since we didn't have the
`fatal` keyword argument to avoid triggering the fatal-meson-warnings.

While we're here, replace the use of a `if bool` with an `else` on the
for loop.
pull/13356/head
Dylan Baker 7 months ago committed by Eli Schwartz
parent d86e5c52f4
commit 3cd2cee775
  1. 4
      mesonbuild/dependencies/misc.py

@ -139,8 +139,8 @@ class OpenMPDependency(SystemDependency):
if self.clib_compiler.has_header(name, '', self.env, dependencies=[self], disable_cache=True)[0]:
self.is_found = True
break
if not self.is_found:
mlog.log(mlog.yellow('WARNING:'), 'OpenMP found but omp.h missing.')
else:
mlog.warning('OpenMP found but omp.h missing.', fatal=False)
packages['openmp'] = OpenMPDependency

Loading…
Cancel
Save