From c5cf5dc9ab963caf873d39ac816bbfb428c70e13 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Wed, 2 Nov 2022 16:49:55 -0600 Subject: [PATCH] CONFIG: Add MODERN=YES option to use modern cmake netcdf/hdf5 code --- cmake-config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake-config b/cmake-config index 6a80e51222..b6f56ec0cd 100755 --- a/cmake-config +++ b/cmake-config @@ -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: @@ -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} \