diff --git a/src/clib/CMakeLists.txt b/src/clib/CMakeLists.txt index 59e0aebc930..d8dc3f63a00 100644 --- a/src/clib/CMakeLists.txt +++ b/src/clib/CMakeLists.txt @@ -98,10 +98,10 @@ if (NetCDF_C_FOUND) # PUBLIC _NETCDF) target_link_libraries (pioc PUBLIC ${NetCDF_C_LIBRARIES}) - if (${NetCDF_C_HAS_PARALLEL}) + #if (${NetCDF_C_HAS_PARALLEL}) # target_compile_definitions (pioc # PUBLIC _NETCDF4) - endif () + #endif () if (${NetCDF_C_LOGGING_ENABLED}) target_compile_definitions (pioc PUBLIC NETCDF_C_LOGGING_ENABLED) @@ -109,9 +109,9 @@ if (NetCDF_C_FOUND) target_compile_definitions (pioc PUBLIC LOGGING) endif() -else () - target_compile_definitions (pioc - PUBLIC _NONETCDF) +# else () +# target_compile_definitions (pioc +# PUBLIC _NONETCDF) endif () #===== PnetCDF-C ===== @@ -131,9 +131,9 @@ if (PnetCDF_C_FOUND) PUBLIC USE_PNETCDF_VARN PUBLIC USE_PNETCDF_VARN_ON_READ) endif() -else () - target_compile_definitions (pioc - PUBLIC _NOPNETCDF) +# else () +# target_compile_definitions (pioc +# PUBLIC _NOPNETCDF) endif () #===== Add EXTRAs ===== diff --git a/src/flib/CMakeLists.txt b/src/flib/CMakeLists.txt index 38369f7432f..d2b535abda4 100644 --- a/src/flib/CMakeLists.txt +++ b/src/flib/CMakeLists.txt @@ -224,9 +224,9 @@ if (NetCDF_Fortran_FOUND) # target_compile_definitions (piof # PUBLIC _NETCDF4) # endif () -else () - target_compile_definitions (piof - PUBLIC _NONETCDF) +# else () +# target_compile_definitions (piof +# PUBLIC _NONETCDF) endif () #===== PnetCDF ===== @@ -246,9 +246,9 @@ if (PnetCDF_Fortran_FOUND) PUBLIC USE_PNETCDF_VARN PUBLIC USE_PNETCDF_VARN_ON_READ) endif() -else () - target_compile_definitions (piof - PUBLIC _NOPNETCDF) +# else () +# target_compile_definitions (piof +# PUBLIC _NOPNETCDF) endif () #===== Add EXTRAs =====