diff --git a/vtk-compat_gl.changes b/vtk-compat_gl.changes index 47e17b3..3786913 100644 --- a/vtk-compat_gl.changes +++ b/vtk-compat_gl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 24 11:55:17 UTC 2017 - dimstar@opensuse.org + +- Setup MPI environment before building. + ------------------------------------------------------------------- Thu Oct 12 20:47:27 UTC 2017 - jengelh@inai.de diff --git a/vtk-compat_gl.spec b/vtk-compat_gl.spec index 6d4a5eb..8865b3a 100644 --- a/vtk-compat_gl.spec +++ b/vtk-compat_gl.spec @@ -310,6 +310,10 @@ grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs -r perl -pi -e's,\.\./\.\./\.\. export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" +if [ -f %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh ]; then + source %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh +fi + mkdir build pushd build cmake .. \ diff --git a/vtk.changes b/vtk.changes index 47e17b3..3786913 100644 --- a/vtk.changes +++ b/vtk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 24 11:55:17 UTC 2017 - dimstar@opensuse.org + +- Setup MPI environment before building. + ------------------------------------------------------------------- Thu Oct 12 20:47:27 UTC 2017 - jengelh@inai.de diff --git a/vtk.spec b/vtk.spec index 21ccc52..c5c7bbe 100644 --- a/vtk.spec +++ b/vtk.spec @@ -310,6 +310,10 @@ grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs -r perl -pi -e's,\.\./\.\./\.\. export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" +if [ -f %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh ]; then + source %{_libdir}/mpi/gcc/openmpi/bin/mpivars.sh +fi + mkdir build pushd build cmake .. \