Skip to content

Commit 7fc4810

Browse files
committed
Drop custom path to netCDF
The patch that was referenced in the CMakeLists was [merged upstream][merge]. [merge]: Unidata/netcdf-c#1540
1 parent ecf9ba8 commit 7fc4810

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,7 @@ if (NOT FFTW_FOUND)
2828
find_package(FFTW REQUIRED)
2929
endif()
3030

31-
find_package(netCDF QUIET)
32-
if (NOT netCDF_FOUND)
33-
FetchContent_Declare(netcdf4
34-
GIT_REPOSITORY "http://github.com/kprussing/netcdf-c.git"
35-
GIT_TAG feature/cmake-targets
36-
SOURCE_DIR "external/netcdf4-c"
37-
CMAKE_ARGS "-DBUILD_SHARED_LIBS=On -DENABLE_DOXYGEN=Off -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
38-
)
39-
FetchContent_GetProperties(netcdf4)
40-
if (NOT netcdf4_POPULATED)
41-
FetchContent_Populate(netcdf4)
42-
add_subdirectory(${netcdf4_SOURCE_DIR} ${netcdf4_BINARY_DIR})
43-
endif()
44-
endif()
31+
find_package(netCDF REQUIRED)
4532

4633
option(USE_FLOAT "Use single precision values" Off)
4734
if (USE_FLOAT)

0 commit comments

Comments
 (0)