mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-11 16:40:36 +08:00
Corrected an issue when compiling with HDF4 and CMake.
This commit is contained in:
parent
18dca3eb66
commit
82f835edbb
@ -443,10 +443,14 @@ OPTION (ENABLE_HDF4 "Build netCDF-4 with HDF5 read capability (HDF4, HDF5 and Zl
|
||||
IF (ENABLE_HDF4)
|
||||
SET(USE_HDF4 ON)
|
||||
# Check for include files, libraries.
|
||||
CHECK_INCLUDE_FILE("mfhdf.h" HAVE_MFHDF_H)
|
||||
IF(NOT HAVE_MFHDF_H)
|
||||
|
||||
FIND_PATH(MFHDF_H_INCLUDE_DIR mfhdf.h)
|
||||
IF(NOT MFHDF_H_INCLUDE_DIR)
|
||||
MESSAGE(FATAL_ERROR "HDF4 Support specified, cannot find file mfhdf.h")
|
||||
ENDIF(NOT HAVE_MFHDF_H)
|
||||
ELSE()
|
||||
SET(HAVE_MFHDF_H ON CACHE BOOL "")
|
||||
INCLUDE_DIRECTORIES(${MFHDF_H_INCLUDE_DIR})
|
||||
ENDIF()
|
||||
|
||||
FIND_LIBRARY(HDF4_DF_LIB NAMES df libdf)
|
||||
IF(NOT HDF4_DF_LIB)
|
||||
|
@ -10,7 +10,9 @@ information, where '[NCF-XXX]' refers to https://www.unidata.ucar.edu/jira/brows
|
||||
|
||||
### 4.3.1-rc4 Released TBD
|
||||
|
||||
Fix bug introduced by [NCF-267] where octal constants above
|
||||
* Corrected an issue with CMake-based builds enabling HDF4 support where the HDF4 libraries were in a non-standard location.
|
||||
|
||||
* Fix bug introduced by [NCF-267] where octal constants above
|
||||
'\177' were not recognized as proper octal constants. [NCF-271]
|
||||
|
||||
[NCF-271]:https://bugtracking.unidata.ucar.edu/browse/NCF-271
|
||||
|
Loading…
Reference in New Issue
Block a user