]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Corrected detection of MPI_ROOT_DIR
authorNDJINGA Michael <ndjinga@is224593.intra.cea.fr>
Thu, 20 Jan 2022 15:34:46 +0000 (16:34 +0100)
committerNDJINGA Michael <ndjinga@is224593.intra.cea.fr>
Thu, 20 Jan 2022 15:34:46 +0000 (16:34 +0100)
CMakeLists.txt

index 16fb08e55354bed27abc349ff5d997994d55edb1..eabb926e62a1ee42b19d2c07cce9d18d8f9d76cf 100644 (file)
@@ -60,13 +60,9 @@ list (APPEND CMAKE_MODULE_PATH "${SOLVERLAB_SOURCE_DIR}/cmake_files")
 #############################
 # 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 )
@@ -660,7 +656,7 @@ if (SOLVERLAB_WITH_DOCUMENTATION)
   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)