From 1bb4b57498a7ad5ec23ea5b70dd04a1ee70710a7 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Thu, 27 Aug 2020 05:58:04 -0600 Subject: [PATCH] now fixing for flib --- cmake_config.h.in | 9 ++++++--- src/flib/CMakeLists.txt | 12 ++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/cmake_config.h.in b/cmake_config.h.in index 943da4d0939..399e1fe81d6 100644 --- a/cmake_config.h.in +++ b/cmake_config.h.in @@ -30,18 +30,21 @@ #define USE_VARD @USE_VARD@ +/* Does netCDF support netCDF/HDF5 files? */ #cmakedefine HAVE_NETCDF4 + +/* Does netCDF support parallel I/O for netCDF/HDF5 files? */ #cmakedefine HAVE_NETCDF_PAR +/* Does PIO support netCDF/HDF5 files? */ +#cmakedefine _NETCDF4 + /* Does netCDF and HDF5 support parallel I/O filters? */ #cmakedefine HAVE_PAR_FILTERS /* Was PIO built with netCDF integration? */ #cmakedefine NETCDF_INTEGRATION -/* Does PIO support netCDF/HDF5 files? */ -#cmakedefine _NETCDF4 - /* Does PIO support using pnetcdf for I/O? */ #cmakedefine _PNETCDF diff --git a/src/flib/CMakeLists.txt b/src/flib/CMakeLists.txt index 8ee65c77ad6..38369f7432f 100644 --- a/src/flib/CMakeLists.txt +++ b/src/flib/CMakeLists.txt @@ -216,14 +216,14 @@ endif () if (NetCDF_Fortran_FOUND) target_include_directories (piof PUBLIC ${NetCDF_Fortran_INCLUDE_DIRS}) - target_compile_definitions (piof - PUBLIC _NETCDF) + # target_compile_definitions (piof + # PUBLIC _NETCDF) target_link_libraries (piof PUBLIC ${NetCDF_Fortran_LIBRARIES}) - if (EXISTS ${NetCDF_Fortran_INCLUDE_DIR}/netcdf_par.h) - target_compile_definitions (piof - PUBLIC _NETCDF4) - endif () + # if (EXISTS ${NetCDF_Fortran_INCLUDE_DIR}/netcdf_par.h) + # target_compile_definitions (piof + # PUBLIC _NETCDF4) + # endif () else () target_compile_definitions (piof PUBLIC _NONETCDF)