Fix: bug in VTK package (#9431)

* Fix: bug in VTK package

Fix for issue 9423 (https://github.com/spack/spack/issues/9423): compilers other than clang don't have the `is_apple` property.

* VTK package: removing trailing whitespace

So flake8 stops complaining.
This commit is contained in:
dorier 2018-10-08 08:08:50 +01:00 committed by Massimiliano Culpo
parent c0249eddb1
commit baa664ffaa

View File

@ -212,7 +212,8 @@ def cmake_args(self):
# string. This fix was recommended on the VTK mailing list # string. This fix was recommended on the VTK mailing list
# in March 2014 (see # in March 2014 (see
# https://public.kitware.com/pipermail/vtkusers/2014-March/083368.html) # https://public.kitware.com/pipermail/vtkusers/2014-March/083368.html)
if (self.compiler.is_apple and if (self.spec.satisfies('%clang') and
self.compiler.is_apple and
self.compiler.version >= Version('5.1.0')): self.compiler.version >= Version('5.1.0')):
cmake_args.extend(['-DVTK_REQUIRED_OBJCXX_FLAGS=""']) cmake_args.extend(['-DVTK_REQUIRED_OBJCXX_FLAGS=""'])