Skip to content

Commit

Permalink
Merge pull request #311 from sebastic/hdf5-include-path
Browse files Browse the repository at this point in the history
Fix HDF5 include directory with CMake >= 3.6.0.
  • Loading branch information
WardF committed Aug 29, 2016
2 parents 87964e9 + 6e5c745 commit 4d0c055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -572,6 +572,10 @@ IF(USE_HDF5 OR ENABLE_NETCDF_4)
##
# Include the HDF5 include directory.
##
IF(HDF5_INCLUDE_DIRS AND NOT HDF5_INCLUDE_DIR)
SET(HDF5_INCLUDE_DIR ${HDF5_INCLUDE_DIRS})
ENDIF()
MESSAGE(STATUS "Using HDF5 include dir: ${HDF5_INCLUDE_DIR}")
INCLUDE_DIRECTORIES(${HDF5_INCLUDE_DIR})

###
Expand Down

0 comments on commit 4d0c055

Please sign in to comment.