diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-07-30 15:23:58 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-31 22:34:03 +0300 |
commit | f3fbac9d2bf560076e493dda0eb9e6d14b97912a (patch) | |
tree | 73559b5012a6ca498a8ad36ce16c9fda77124d40 /mesonbuild | |
parent | 06aaffa4e14322274fe28184d159adec1142b1cb (diff) | |
download | meson-f3fbac9d2bf560076e493dda0eb9e6d14b97912a.zip meson-f3fbac9d2bf560076e493dda0eb9e6d14b97912a.tar.gz meson-f3fbac9d2bf560076e493dda0eb9e6d14b97912a.tar.bz2 |
OpenMP:stop searching when openmp headers are first found
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/dependencies/misc.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index cdfa48b..53c3747 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -392,8 +392,9 @@ class OpenMPDependency(ExternalDependency): if self.clib_compiler.has_header(name, '', self.env, dependencies=[self], disable_cache=True)[0]: self.is_found = True self.compile_args = self.link_args = self.clib_compiler.openmp_flags() - else: - mlog.log(mlog.yellow('WARNING:'), 'OpenMP found but omp.h missing.') + break + if not self.is_found: + mlog.log(mlog.yellow('WARNING:'), 'OpenMP found but omp.h missing.') class ThreadDependency(ExternalDependency): |