diff --git a/cmake-config b/cmake-config index e600e38681..9220e874cd 100755 --- a/cmake-config +++ b/cmake-config @@ -251,7 +251,7 @@ then # MODERN_ARG="-D TPL_ENABLE_HDF5:BOOL=ON -D Netcdf_ALLOW_MODERN:BOOL=ON" MODERN_ARG="-D Netcdf_FORCE_MODERN:BOOL=ON" else - MODERN_ARG="" + MODERN_ARG="-D HDF5_NO_SYSTEM_PATHS=YES" fi GENERATOR=${GENERATOR:-"Unix Makefiles"} @@ -528,7 +528,6 @@ ${FAODEL_SYMBOLS} \ -D MPI_BIN_DIR:PATH=${MPI_BIN} \ -D NetCDF_ROOT:PATH=${NETCDF_PATH} \ -D HDF5_ROOT:PATH=${HDF5_PATH} \ --D HDF5_NO_SYSTEM_PATHS=YES \ -D CGNS_ROOT:PATH=${CGNS_PATH} \ -D Matio_ROOT:PATH=${MATIO_PATH} \ -D Metis_ROOT:PATH=${METIS_PATH} \