OpenMP:stop searching when openmp headers are first found
@@ -392,7 +392,8 @@ 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:
+ break
+ if not self.is_found:
mlog.log(mlog.yellow('WARNING:'), 'OpenMP found but omp.h missing.')
