CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PARSER=ON"
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PETSC=OFF"
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PRIVATE_API=ON"
-CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=ON"
+if [ -n "$CGNS_ROOT_DIR" ]; then
+ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=ON"
+ if [ "${SAT_cgns_IS_NATIVE}" != "1" ]; then
+ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include"
+ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so"
+ fi
+else
+ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=OFF"
+fi
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};${HDF5_ROOT_DIR};${MEDFILE_ROOT_DIR};" # set path of third libraries to our associated internal products
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_OPENMP=ON" # get OpenMP based parallelism working
import os.path, platform
def set_env(env, prereq_dir, version):
+ env.set('CGNS_ROOT', prereq_dir)
env.set('CGNS_ROOT_DIR', prereq_dir)
env.set('CGNS_INCLUDE_DIR',os.path.join(prereq_dir,'include'))
env.prepend('PATH', os.path.join(prereq_dir, 'bin'))
version_4_10_3:
{
compil_script : "gmsh-4.10.3.sh"
+ depend : ["CAS","lapack","hdf5","medfile", "cgns"]
}
version_4_10_3_win:
{
compil_script : "gmsh-4.10.3.bat"
patches: ['gmsh-4.10.3-windows.patch']
+ depend : ["CAS","lapack","hdf5","medfile", "cgns"]
}
version_4_10_3_win_dbg:
{
+ depend : ["CAS","lapack","hdf5","medfile", "cgns"]
compil_script : "gmsh-4.10.3.bat"
patches: ['gmsh-4.10.3-windows.patch']
properties :