Skip to content

Commit cba80d5

Browse files
jedwards4bCopilot
andauthored
Update CMakeLists.txt
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent aa01755 commit cba80d5

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

CMakeLists.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,6 @@ else()
9999
endif()
100100

101101

102-
# NetCDF feature tests (after NetCDF_C detection)
103-
if(NetCDF_C_FOUND AND NetCDF_C_INCLUDE_DIRS)
104-
# Test for NetCDF-4 capability
105-
set(CMAKE_REQUIRED_INCLUDES ${NetCDF_C_INCLUDE_DIRS})
106-
CHECK_C_SOURCE_COMPILES("
107-
#include <netcdf_meta.h>
108-
#if !defined(NC_VERSION_MAJOR) || NC_VERSION_MAJOR < 4
109-
choke me
110-
#endif
111-
int main() {return 0;}" HAVE_NETCDF4)
112-
113-
# Test for NetCDF parallel I/O capability
114-
set(CMAKE_REQUIRED_INCLUDES ${NetCDF_C_INCLUDE_DIRS})
115-
CHECK_C_SOURCE_COMPILES("
116-
#include <netcdf_meta.h>
117-
#if !NC_HAS_PARALLEL
118-
choke me
119-
#endif
120-
int main() {return 0;}" HAVE_NETCDF_PAR)
121-
else()
122-
set(HAVE_NETCDF4 FALSE)
123-
set(HAVE_NETCDF_PAR FALSE)
124-
endif()
125-
126102
# The size of the data buffer for write/read_darray().
127103
set(PIO_BUFFER_SIZE 134217728)
128104

0 commit comments

Comments
 (0)