Skip to content

Commit

Permalink
cime now has CMake findnetCDF.cmake included, so no need to explicitl…
Browse files Browse the repository at this point in the history
…y add netcdf4 includes and libs.
  • Loading branch information
fmyuan committed Jul 26, 2024
1 parent a8a2806 commit 7bcdfc9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions cime_config/machines/cmake_macros/gnu_cades-baseline.cmake
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
set(MPICC "mpicc")
set(MPICXX "mpic++")
set(MPIFC "mpif90")
set(SCC "gcc")
set(SCXX "g++")
set(SFC "gfortran")
set(SUPPORTS_CXX "TRUE")
set(HDF5_PATH "$ENV{HDF5_PATH}")
set(NETCDF_C_PATH "$ENV{NETCDF_C_PATH}")
set(NETCDF_FORTRAN_PATH "$ENV{NETCDF_FORTRAN_PATH}")
set(BLASLAPACK_LIBDIR "$ENV{BLASLAPACK_LIBDIR}")
string(APPEND CMAKE_C_FLAGS_RELEASE " -O2")
string(APPEND CMAKE_Fortran_FLAGS_RELEASE " -O2")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -O0")
string(APPEND FFLAGS " -fallow-argument-mismatch")
string(APPEND SLIBS " -L$ENV{PNETCDF_PATH}/lib -lpnetcdf -L$ENV{HDF5_PATH}/lib -lhdf5_hl_fortran -lhdf5_fortran -lhdf5_hl -lhdf5 -L$ENV{NETCDF_C_PATH}/lib -lnetcdf -L$ENV{NETCDF_FORTRAN_PATH}/lib -lnetcdff")
string(APPEND SLIBS " -L${BLASLAPACK_LIBDIR} -lblas -llapack")
string(APPEND CXX_LIBS " -lstdc++")
set(PIO_FILESYSTEM_HINTS "gpfs")

0 comments on commit 7bcdfc9

Please sign in to comment.