Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
commented out the netcdf-fortran library
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Oct 17, 2022
1 parent 81fde88 commit 97b015d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cmake/Modules/SetUpNetCDF.cmake
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Find NetCDF if not already found
IF(NOT NETCDF_FOUND)
ENABLE_LANGUAGE(C) # Some libraries need a C compiler to find
FIND_PACKAGE(NETCDF REQUIRED)
ENABLE_LANGUAGE(C) # Some libraries need a C compiler to find
FIND_PACKAGE(netcdf REQUIRED)
SET(NETCDF_FOUND TRUE CACHE INTERNAL "NETCDF was found" FORCE)
SET(NETCDFFORTRAN_FOUND TRUE CACHE INTERNAL "NETCDFFORTRAN was found" FORCE)
SET(NETCDF_LIBRARIES ${NETCDF_LIBRARIES} CACHE INTERNAL "NETCDF LIBS" FORCE)
SET(NETCDFFORTRAN_LIBRARIES ${NETCDFFORTRAN_LIBRARIES} CACHE INTERNAL "NETCDFFORTRAN LIBS" FORCE)
#SET(NETCDFFORTRAN_FOUND TRUE CACHE INTERNAL "NETCDF-FORTRAN was found" FORCE)
#SET(NETCDFFORTRAN_LIBRARIES ${NETCDFFORTRAN_LIBRARIES} CACHE INTERNAL "NETCDFFORTRAN LIBS" FORCE)
ENDIF(NOT NETCDF_FOUND)
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ ADD_EXECUTABLE(${FOOEXE} ${FOO_src})
#####################################################

# Uncomment if you need to link to BLAS and LAPACK
TARGET_LINK_LIBRARIES(${FOOEXE} ${NETCDF_LIBRARIES}
${NETCDFFORTRAN_LIBRARIES})
TARGET_LINK_LIBRARIES(${FOOEXE} ${NETCDF_LIBRARIES})
#${NETCDFFORTRAN_LIBRARIES})

# Uncomment if you have parallization
IF(USE_OPENMP)
Expand Down

0 comments on commit 97b015d

Please sign in to comment.