mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Changed HDF4 test check from 'wget' to 'curl', to mirror
change in test scripts.
This commit is contained in:
parent
430fe00c22
commit
01f24a5189
@ -571,13 +571,13 @@ IF(ENABLE_HDF4)
|
||||
MESSAGE(STATUS "Found JPEG libraries: ${JPEG_LIB}")
|
||||
|
||||
# Option to enable HDF4 file tests.
|
||||
OPTION(ENABLE_HDF4_FILE_TESTS "Run HDF4 file tests. This fetches sample HDF4 files from the Unidata ftp site to test with(requires wget)." ON)
|
||||
OPTION(ENABLE_HDF4_FILE_TESTS "Run HDF4 file tests. This fetches sample HDF4 files from the Unidata ftp site to test with (requires curl)." ON)
|
||||
IF(ENABLE_HDF4_FILE_TESTS)
|
||||
FIND_PROGRAM(PROG_WGET NAMES wget)
|
||||
IF(PROG_WGET)
|
||||
FIND_PROGRAM(PROG_CURL NAMES curl)
|
||||
IF(PROG_CURL)
|
||||
SET(USE_HDF4_FILE_TESTS ON)
|
||||
ELSE()
|
||||
MESSAGE(STATUS "Unable to locate 'wget'. Disabling hdf4 file tests.")
|
||||
MESSAGE(STATUS "Unable to locate 'curl'. Disabling hdf4 file tests.")
|
||||
SET(USE_HDF4_FILE_TESTS OFF)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
Loading…
Reference in New Issue
Block a user