From adbb0d801bec1b77a53f1aab0ffa572c7fbb32e2 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 31 Aug 2020 11:10:02 -0600 Subject: [PATCH] removed flags from fortran cmake build --- src/clib/CMakeLists.txt | 6 ------ src/flib/CMakeLists.txt | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/clib/CMakeLists.txt b/src/clib/CMakeLists.txt index 945d2b7dba6..68d801907a0 100644 --- a/src/clib/CMakeLists.txt +++ b/src/clib/CMakeLists.txt @@ -112,12 +112,6 @@ 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() endif () #===== Add EXTRAs ===== diff --git a/src/flib/CMakeLists.txt b/src/flib/CMakeLists.txt index 506981ddc98..99a9ba7cf75 100644 --- a/src/flib/CMakeLists.txt +++ b/src/flib/CMakeLists.txt @@ -229,12 +229,6 @@ if (PnetCDF_Fortran_FOUND) # Check library for varn functions set (CMAKE_REQUIRED_LIBRARIES ${PnetCDF_Fortran_LIBRARY}) - check_function_exists (ncmpi_get_varn PnetCDF_Fortran_HAS_VARN) - if (PnetCDF_Fortran_HAS_VARN) - target_compile_definitions(piof - PUBLIC USE_PNETCDF_VARN - PUBLIC USE_PNETCDF_VARN_ON_READ) - endif() endif () #===== Add EXTRAs =====