Skip to content

Commit 8ac8ce9

Browse files
committed
netcdf-fortran build: remove now unneeded cmake_required_libraries
1 parent f31ff20 commit 8ac8ce9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

cmake/netcdf.cmake

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ endif()
3434

3535
# --- NetCDF-Fortran
3636

37-
# NetCDF-Fortran needs these for its checks of NetCDF-C, but doesn't set them.
38-
find_package(ZLIB)
39-
find_package(Threads)
40-
41-
set(CMAKE_REQUIRED_LIBRARIES
42-
${ZLIB_LIBRARIES}
43-
${CMAKE_THREAD_LIBS_INIT}
44-
${CMAKE_DL_LIBS}
45-
)
46-
4737
set(netcdf_fortran_cmake_args
4838
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
4939
-DCMAKE_PREFIX_PATH:PATH=${CMAKE_INSTALL_PREFIX}
@@ -73,7 +63,6 @@ ExternalProject_Add(NETCDF_FORTRAN
7363
URL ${netcdfFortran_url}
7464
CONFIGURE_HANDLED_BY_BUILD ON
7565
CMAKE_ARGS ${netcdf_fortran_cmake_args}
76-
CMAKE_CACHE_ARGS -DCMAKE_REQUIRED_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}
7766
BUILD_BYPRODUCTS ${NetCDF_Fortran_LIBRARIES}
7867
DEPENDS NETCDF_C
7968
USES_TERMINAL_DOWNLOAD true

0 commit comments

Comments
 (0)