]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
zeromq: DB10 - target mpicxx and mpicc
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 3 Mar 2022 11:55:32 +0000 (12:55 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 3 Mar 2022 11:55:32 +0000 (12:55 +0100)
products/compil_scripts/zeromq-4.3.1.sh

index 9b4e610bed664e773b04501c5a2930579bd08c08..5b02fd25dcb560c0df9b58625db719bd281ed08f 100755 (executable)
@@ -4,13 +4,6 @@ echo "##########################################################################
 echo "zeromq" $VERSION
 echo "##########################################################################"
 
-if [ -n "$MPI_ROOT_DIR" ]
-then
-    echo "WARNING: setting CC and CXX environment variables and target MPI wrapper"
-    export CC=${MPI_ROOT_DIR}/bin/mpicc
-    export CXX=${MPI_ROOT_DIR}/bin/mpicxx
-fi
-
 CMAKE_OPTIONS=""
 CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}"
 CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib"
@@ -20,6 +13,10 @@ if [ -n "$LIBXML2_ROOT_DIR" ] && [ "${LIBXML2_ROOT_DIR}" != "/usr" ]; then
     CMAKE_OPTIONS+=" -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so"
     CMAKE_OPTIONS+=" -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint"
 fi
+if [ -n "$MPI_ROOT_DIR" ]; then
+    CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_CXX_COMPILER}"
+    CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_C_COMPILER}"
+fi
 
 echo
 echo "*** cmake" $CMAKE_OPTIONS