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

Commit

Permalink
More improvements to the Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Aug 22, 2023
1 parent 9457f24 commit a94d856
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ dump*
swiftest-*
__pycache__*
_cmake*
_dependencies


#Documentation
Expand Down
6 changes: 6 additions & 0 deletions cmake/Modules/FindNETCDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ MESSAGE(STATUS "NetCDF-Fortran include directory: ${NETCDF_INCLUDE_DIR}")

IF (BUILD_SHARED_LIBS OR CMAKE_SYSTEM_NAME STREQUAL "Windows")
SET(NETCDFF "netcdff")
SET(NETCDF "netcdf")
ELSE ()
SET(NETCDFF "libnetcdff.a")
SET(NETCDF "libnetcdf.a")
Expand Down Expand Up @@ -133,6 +134,11 @@ ELSE ()
ELSE ()
MESSAGE(FATAL_ERROR "Cannot find nc-config")
ENDIF ()
ELSE ()
FIND_PACKAGE(NETCDF CONFIG QUIET)
IF (NETCDF_FOUND)
set(NETCDF_LIBRARY "${netCDF_LIBRARIES}")
ENDIF()
ENDIF()

IF (DEFINED ENV{LIBS})
Expand Down

0 comments on commit a94d856

Please sign in to comment.