From 666731d024121a801e42b2e20b9bafba7c63b4f5 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 31 Aug 2020 10:20:43 -0600 Subject: [PATCH] removed unused VARN pre-processor defines --- configure.ac | 2 -- src/clib/CMakeLists.txt | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index aeec09d87a6..93c7445aff7 100644 --- a/configure.ac +++ b/configure.ac @@ -249,8 +249,6 @@ fi # If we have parallel-netcdf, then set these as well. if test x$ac_cv_lib_pnetcdf_ncmpi_create = xyes; then AC_DEFINE([_PNETCDF], [1], [parallel-netcdf library available]) - AC_DEFINE([USE_PNETCDF_VARN], [1], [defined by CMake build]) - AC_DEFINE([USE_PNETCDF_VARN_ON_READ], [1], [defined by CMake build]) fi # Do we have netCDF-4? diff --git a/src/clib/CMakeLists.txt b/src/clib/CMakeLists.txt index 30d25ac0471..945d2b7dba6 100644 --- a/src/clib/CMakeLists.txt +++ b/src/clib/CMakeLists.txt @@ -112,12 +112,12 @@ if (PnetCDF_C_FOUND) # Check library for varn functions set (CMAKE_REQUIRED_LIBRARIES ${PnetCDF_C_LIBRARY}) - check_function_exists (ncmpi_get_varn PnetCDF_C_HAS_VARN) - if (PnetCDF_C_HAS_VARN) - target_compile_definitions(pioc - PUBLIC USE_PNETCDF_VARN - PUBLIC USE_PNETCDF_VARN_ON_READ) - endif() + # check_function_exists (ncmpi_get_varn PnetCDF_C_HAS_VARN) + # if (PnetCDF_C_HAS_VARN) + # target_compile_definitions(pioc + # PUBLIC USE_PNETCDF_VARN + # PUBLIC USE_PNETCDF_VARN_ON_READ) + # endif() endif () #===== Add EXTRAs =====