backend/vs: Fix OpenMPSupport

https://learn.microsoft.com/en-us/visualstudio/msbuild/cl-task?view=vs-2022

Found by https://www.check-spelling.dev/

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
pull/11673/head
Josh Soref 2 years ago committed by Eli Schwartz
parent 0551a8847d
commit 93cafe7b14
  1. 4
      mesonbuild/backend/vs2010backend.py

@ -1240,14 +1240,14 @@ class Vs2010Backend(backends.Backend):
# Extend without reordering or de-dup to preserve `-L -l` sets
# https://github.com/mesonbuild/meson/issues/1718
if isinstance(dep, dependencies.OpenMPDependency):
ET.SubElement(clconf, 'OpenMPSuppport').text = 'true'
ET.SubElement(clconf, 'OpenMPSupport').text = 'true'
else:
extra_link_args.extend_direct(dep.get_link_args())
for d in target.get_dependencies():
if isinstance(d, build.StaticLibrary):
for dep in d.get_external_deps():
if isinstance(dep, dependencies.OpenMPDependency):
ET.SubElement(clconf, 'OpenMPSuppport').text = 'true'
ET.SubElement(clconf, 'OpenMPSupport').text = 'true'
else:
extra_link_args.extend_direct(dep.get_link_args())
# Add link args for c_* or cpp_* build options. Currently this only

Loading…
Cancel
Save