echo "SOLVERLAB" $VERSION
echo "##########################################################################"
+rm -rf $BUILD_DIR
+mkdir $BUILD_DIR
+cd $BUILD_DIR
+CMAKE_OPTIONS=
CMAKE_OPTIONS+=" -DPython_ROOT_DIR=${PYTHON_ROOT_DIR}"
CMAKE_OPTIONS+=" -DPython_EXECUTABLE=${PYTHONBIN}"
CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX=${PRODUCT_INSTALL}"
-if [ $VERSION == "V9_6_0" ]; then
- # GUI was ported after 9.6.0
- CMAKE_OPTIONS+=" -DCOREFLOWS_WITH_GUI=OFF"
- # following variables are automatically detected in environment after 9.6.0
- CMAKE_OPTIONS+=" -DPYQT5_ROOT_DIR=${PYQT5_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DMATPLOTLIB_ROOT_DIR=${MATPLOTLIB_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig"
- CMAKE_OPTIONS+=" -DDOXYGEN_EXECUTABLE=${DOXYGEN_ROOT_DIR}/bin/doxygen"
- CMAKE_OPTIONS+=" -DCPPUNIT_ROOT_USER=${CPPUNIT_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DHDF5_ROOT=${HDF5_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DMEDFILE_ROOT_DIR=${MEDFILE_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DPARAVIEW_ROOT_DIR=${PARAVIEW_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DPETSC_DIR=${PETSC_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DGUI_ROOT_DIR=${GUI_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DMEDCOUPLING_ROOT_DIR=${MEDCOUPLING_ROOT_DIR}"
-else
- CMAKE_OPTIONS+=" -DCOREFLOWS_WITH_GUI=ON"
-fi
-
-if [ -n "$SAT_HPC" ]; then
- if [ $VERSION == "V9_6_0" ] && [ -n "$MPI_ROOT_DIR" ]; then
- # following variable is automatically detected in environment after 9.6.0
- CMAKE_OPTIONS+=" -DMPI_HOME=${MPI_ROOT_DIR}"
+if [ ! -d $SOURCE_DIR/solverlabGUI ]; then
+ if [ $VERSION == "V9_6_0" ]; then
+ # GUI was ported after 9.6.0
+ CMAKE_OPTIONS+=" -DCOREFLOWS_WITH_GUI=OFF"
+ # following variables are automatically detected in environment after 9.6.0
+ CMAKE_OPTIONS+=" -DPYQT5_ROOT_DIR=${PYQT5_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DMATPLOTLIB_ROOT_DIR=${MATPLOTLIB_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig"
+ CMAKE_OPTIONS+=" -DDOXYGEN_EXECUTABLE=${DOXYGEN_ROOT_DIR}/bin/doxygen"
+ CMAKE_OPTIONS+=" -DCPPUNIT_ROOT_USER=${CPPUNIT_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DHDF5_ROOT=${HDF5_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DMEDFILE_ROOT_DIR=${MEDFILE_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DPARAVIEW_ROOT_DIR=${PARAVIEW_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DPETSC_DIR=${PETSC_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=${KERNEL_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DGUI_ROOT_DIR=${GUI_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DMEDCOUPLING_ROOT_DIR=${MEDCOUPLING_ROOT_DIR}"
+ else
+ CMAKE_OPTIONS+=" -DCOREFLOWS_WITH_GUI=ON"
+ CMAKE_OPTIONS+=" -DPACKAGESPY_ROOT_DIR=${PACKAGESPY_ROOT_DIR}"
+ # CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_PACKAGESPY=ON"
fi
- CMAKE_OPTIONS+=" -DMPI_ROOT_DIR=${MPI_ROOT_DIR}"
- CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_MPI=ON"
- if [ -n "$MPI_ROOT_DIR" ]; then
- CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_CXX_COMPILER}"
- CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_C_COMPILER}"
+ if [ -n "$SAT_HPC" ]; then
+ if [ $VERSION == "V9_6_0" ] && [ -n "$MPI_ROOT_DIR" ]; then
+ # following variable is automatically detected in environment after 9.6.0
+ CMAKE_OPTIONS+=" -DMPI_HOME=${MPI_ROOT_DIR}"
+ fi
+ CMAKE_OPTIONS+=" -DMPI_ROOT_DIR=${MPI_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_MPI=ON"
+ 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
+ if [ -n "$MPI4PY_ROOT_DIR" ]; then
+ CMAKE_OPTIONS+=" -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
+ else
+ echo "WARNING: mpi4py environment variable not detected"
+ fi
fi
- if [ -n "$MPI4PY_ROOT_DIR" ]; then
- CMAKE_OPTIONS+=" -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
- else
- echo "WARNING: mpi4py environment variable not detected"
+else
+ CMAKE_OPTIONS+=" -DCOREFLOWS_WITH_GUI=OFF"
+ if [ -n "$SAT_HPC" ]; then
+ CMAKE_OPTIONS+=" -DMPI_ROOT_DIR=${MPI_ROOT_DIR}"
+ CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_MPI=ON"
+ 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
+ if [ -n "$MPI4PY_ROOT_DIR" ]; then
+ CMAKE_OPTIONS+=" -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
+ else
+ echo "WARNING: mpi4py environment variable not detected"
+ fi
fi
fi