vtk: Added mpi variant (#9494)
This commit is contained in:
		| @@ -48,6 +48,7 @@ class Vtk(CMakePackage): | |||||||
|     variant('osmesa', default=False, description='Enable OSMesa support') |     variant('osmesa', default=False, description='Enable OSMesa support') | ||||||
|     variant('python', default=False, description='Enable Python support') |     variant('python', default=False, description='Enable Python support') | ||||||
|     variant('qt', default=False, description='Build with support for Qt') |     variant('qt', default=False, description='Build with support for Qt') | ||||||
|  |     variant('mpi', default=True, description='Enable MPI support') | ||||||
|  |  | ||||||
|     # Haru causes trouble on Fedora and Ubuntu in v8.1.1 |     # Haru causes trouble on Fedora and Ubuntu in v8.1.1 | ||||||
|     # See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13 |     # See https://bugzilla.redhat.com/show_bug.cgi?id=1460059#c13 | ||||||
| @@ -74,6 +75,8 @@ class Vtk(CMakePackage): | |||||||
|     # VTK will need Qt5OpenGL, and qt needs '-opengl' for that |     # VTK will need Qt5OpenGL, and qt needs '-opengl' for that | ||||||
|     depends_on('qt+opengl', when='+qt') |     depends_on('qt+opengl', when='+qt') | ||||||
|  |  | ||||||
|  |     depends_on('mpi', when='+mpi') | ||||||
|  |  | ||||||
|     depends_on('libharu', when='+haru') |     depends_on('libharu', when='+haru') | ||||||
|  |  | ||||||
|     depends_on('expat') |     depends_on('expat') | ||||||
| @@ -167,6 +170,12 @@ def cmake_args(self): | |||||||
|                     '-DModule_vtkGUISupportQtOpenGL:BOOL=ON', |                     '-DModule_vtkGUISupportQtOpenGL:BOOL=ON', | ||||||
|                 ]) |                 ]) | ||||||
|  |  | ||||||
|  |         if '+mpi' in spec: | ||||||
|  |             cmake_args.extend([ | ||||||
|  |                 '-DVTK_Group_MPI:BOOL=ON', | ||||||
|  |                 '-DVTK_USE_SYSTEM_DIY2=OFF' | ||||||
|  |             ]) | ||||||
|  |  | ||||||
|         if '+osmesa' in spec: |         if '+osmesa' in spec: | ||||||
|             prefix = spec['mesa'].prefix |             prefix = spec['mesa'].prefix | ||||||
|             osmesa_include_dir = prefix.include |             osmesa_include_dir = prefix.include | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lars Bilke
					Lars Bilke