aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-30 15:23:58 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-07-31 22:34:03 +0300
commitf3fbac9d2bf560076e493dda0eb9e6d14b97912a (patch)
tree73559b5012a6ca498a8ad36ce16c9fda77124d40 /mesonbuild
parent06aaffa4e14322274fe28184d159adec1142b1cb (diff)
downloadmeson-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.py5
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):