In salome we do not use post-processing of Gmsh hence the option -DENABLE_PLUGINS=0
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=OFF" # default value is set to ON in release 4.1.4
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_LIBDIR=${PRODUCT_INSTALL}/lib" # strangely on Ubuntu GMSH installs the .so in lib instead of lib/lib64 - so force to lib64
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_PREFIX_PATH=${LAPACK_ROOT_DIR}" # set path of third libraries to our associated internal products
-CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_OPENMP=1"
+CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_OPENMP=ON" # get OpenMP based parallelism working
+CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PLUGINS=OFF" # needed for correct GmshFinalize() after version 4.3.0
if [[ $DIST_NAME == "FD" && $DIST_VERSION == "32" ]]
then
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_MMG3D=OFF" # removed anyhow in GMS 4.6