Changed HDF4 test check from 'wget' to 'curl', to mirror

change in test scripts.
This commit is contained in:
Ward Fisher 2014-08-28 17:10:19 -06:00
parent 430fe00c22
commit 01f24a5189

View File

@ -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()