CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PETSC=OFF"
CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PRIVATE_API=ON"
if [ -n "$CGNS_ROOT_DIR" ]; then
+ # GMSH relies on the presence of this environment variable.
+ export CGNS_ROOT=$CGNS_ROOT_DIR
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
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'))