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:
parent
639d9c305a
commit
890c5ad329
@ -141,10 +141,17 @@ def nvariant_bool(feature):
|
|||||||
'-DMPIEXEC:FILEPATH=%s/bin/mpiexec' % spec['mpi'].prefix
|
'-DMPIEXEC:FILEPATH=%s/bin/mpiexec' % spec['mpi'].prefix
|
||||||
])
|
])
|
||||||
|
|
||||||
if 'darwin' in self.spec.architecture:
|
if 'darwin' in spec.architecture:
|
||||||
cmake_args.extend([
|
cmake_args.extend([
|
||||||
'-DVTK_USE_X:BOOL=OFF',
|
'-DVTK_USE_X:BOOL=OFF',
|
||||||
'-DPARAVIEW_DO_UNIX_STYLE_INSTALLS:BOOL=ON',
|
'-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
|
return cmake_args
|
||||||
|
Loading…
Reference in New Issue
Block a user