#############################
# Detection of MPI + MPI4PY #
#############################
-if ( DEFINED ENV{MPI_ROOT_DIR} OR DEFINED MPI_ROOT_DIR )
- if ( DEFINED ENV{MPI_ROOT_DIR} )
- set(MPI_HOME $ENV{MPI_ROOT_DIR})
- else ( DEFINED ENV{MPI_ROOT_DIR} )
- set(MPI_HOME ${MPI_ROOT_DIR})
- endif( DEFINED ENV{MPI_ROOT_DIR} )
-endif( DEFINED ENV{MPI_ROOT_DIR} OR DEFINED MPI_ROOT_DIR )
+if ( MPI_ROOT_DIR )
+ set(MPI_HOME ${MPI_ROOT_DIR})
+endif( MPI_ROOT_DIR )
# Definition of SOLVERLAB_WITH_MPI
if( DEFINED ENV{MPI_HOME} OR MPI_HOME )
if ( SOLVERLAB_WITH_GUI OR COREFLOWS_WITH_GUI )
find_package(Sphinx)
add_custom_target (docGUI COMMAND ${SPHINX_EXECUTABLE} -M html "${PROJECT_SOURCE_DIR}/CoreFlows/gui/doc" "${PROJECT_BINARY_DIR}/CoreFlows/gui/doc" SOURCES ${PROJECT_SOURCE_DIR}/CoreFlows/gui/doc) #
- install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Utilities/html DESTINATION share/doc/solverlab-gui-doc OPTIONAL) #
+ install (DIRECTORY ${PROJECT_BINARY_DIR}/CoreFlows/gui/doc/html DESTINATION share/doc/solverlab-gui-doc OPTIONAL) #
endif( SOLVERLAB_WITH_GUI OR COREFLOWS_WITH_GUI )
endif(SOLVERLAB_WITH_DOCUMENTATION)