]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
PERSALYS on CentOS 8 help cmake to find qwt
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 4 Mar 2022 11:22:10 +0000 (12:22 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 4 Mar 2022 11:22:15 +0000 (12:22 +0100)
products/compil_scripts/PERSALYS-v11.0.sh

index 85eca3f87dbb6b3fe5d338ba2db0a159e222f237..bcad863b5906a7ddf519e676f88026b5c9dcf964 100755 (executable)
@@ -22,10 +22,16 @@ CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=$KERNEL_ROOT_DIR"
 CMAKR_OPTIONS+=" -DSalomeKERNEL_DIR=$KERNEL_ROOT_DIR/salome_adm/cmake_files"
 CMAKE_OPTIONS+=" -DOpenTURNS_DIR=$OT_ROOT_DIR/lib/cmake/openturns"
 CMAKE_OPTIONS+=" -DPy2cpp_DIR=$PY2CPP_ROOT_DIR//lib/cmake/py2cpp"
-if [ "$QWT_ROOT_DIR" != "/usr" ]; then
+
+# strangely Centos 8 fails to guess qwt installation
+if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && $APPLICATION_NAME =~ native ]]; then
+    CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib64/libqwt-qt5.so"
+    CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt"
+elif [ "$QWT_ROOT_DIR" != "/usr" ]; then
     CMAKE_OPTIONS+=" -DQWT_LIBRARY=$QWT_ROOT_DIR/lib/libqwt.so"
     CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=$QWT_ROOT_DIR/include"
 fi
+
 CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR=$SPHINX_ROOT_DIR"
 CMAKE_OPTIONS+=" -DYACS_ROOT_DIR=$YACS_ROOT_DIR"
 CMAKR_OPTIONS+=" -DSalomeYACS_DIR=$YACS_ROOT_DIR/salome_adm/cmake_files"