Commit 55fbc293 authored by Dave Partyka's avatar Dave Partyka Committed by David Partyka
Browse files

ENH: fix configure error if MPI_EXTRA_LIBRARY is not set.

parent dcbc788d
...@@ -5,7 +5,11 @@ project(Cosmo) ...@@ -5,7 +5,11 @@ project(Cosmo)
#SET(Cosmo_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) #SET(Cosmo_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
SET(Cosmo_LIBS) SET(Cosmo_LIBS)
IF(VTK_USE_MPI) IF(VTK_USE_MPI)
SET(Cosmo_LIBS ${MPI_LIBRARY} ${MPI_EXTRA_LIBRARY}) IF(MPI_EXTRA_LIBRARY)
SET(Cosmo_LIBS ${MPI_LIBRARY} ${MPI_EXTRA_LIBRARY})
ELSE(MPI_EXTRA_LIBRARY)
SET(Cosmo_LIBS ${MPI_LIBRARY})
ENDIF(MPI_EXTRA_LIBRARY)
ELSE(VTK_USE_MPI) ELSE(VTK_USE_MPI)
ADD_DEFINITIONS("-DUSE_SERIAL_COSMO") ADD_DEFINITIONS("-DUSE_SERIAL_COSMO")
ENDIF(VTK_USE_MPI) ENDIF(VTK_USE_MPI)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment