Forcing Paraview to avoid using git describe to determine its own version number (#5783)

* Forcing Paraview to avoid using git describe to determine its own version number.

* Shortening references to spec in paraview.
This commit is contained in:
Jon Rood 2017-10-16 15:32:23 -06:00 committed by Christoph Junghans
parent 639d9c305a
commit 890c5ad329

View File

@ -141,10 +141,17 @@ def nvariant_bool(feature):
'-DMPIEXEC:FILEPATH=%s/bin/mpiexec' % spec['mpi'].prefix
])
if 'darwin' in self.spec.architecture:
if 'darwin' in spec.architecture:
cmake_args.extend([
'-DVTK_USE_X:BOOL=OFF',
'-DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON',
])
# Hide git from Paraview so it will not use `git describe`
# to find its own version number
if spec.satisfies('@5.4.0:5.4.1'):
cmake_args.extend([
'-DGIT_EXECUTABLE=FALSE'
])
return cmake_args