Skip to content

Commit

Permalink
CONFIG: Add MODERN=YES option to use modern cmake netcdf/hdf5 code
Browse files Browse the repository at this point in the history
  • Loading branch information
gsjaardema committed Nov 2, 2022
1 parent 93dde04 commit c5cf5dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake-config
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@ then
fi
fi

MODERN=${MODERN:-NO}
if [ "${MODERN}" == "YES" ]
then
MODERN_ARG="-D TPL_ENABLE_HDF5:BOOL=ON -D Netcdf_ALLOW_MODERN:BOOL=ON"
else
MODERN_ARG=""
fi

GENERATOR=${GENERATOR:-"Unix Makefiles"}

# If using an XLF compiler on an IBM system, may need to add the following:
Expand Down Expand Up @@ -484,6 +492,7 @@ ${SUBSET_OPTIONS} \
-D Seacas_ENABLE_DOXYGEN:BOOL=${DOXYGEN} \
-D Seacas_ENABLE_Fortran=${FORTRAN} \
${EXTRA_LIB} \
${MODERN_ARG} \
\
-D TPL_ENABLE_Netcdf:BOOL=${HAVE_NETCDF} \
-D TPL_ENABLE_Matio:BOOL=${HAVE_MATIO} \
Expand Down

0 comments on commit c5cf5dc

Please sign in to comment.