Skip to content

Commit

Permalink
Work around FindHDF5.cmake API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed Jun 10, 2011
1 parent 65f2c7a commit 5c53c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ find_package (HDF5)
if (GDAL_FOUND)
set (dHAVE_GDAL TRUE)
endif ()
if (NOT HDF5_INCLUDE_DIRS) # The CMake API changed sometime between 1.8.0 and 1.8.4
set (HDF5_INCLUDE_DIRS "${HDF5_INCLUDE_DIR}")
endif ()
find_path (MEMCHECK_HEADER valgrind/memcheck.h)
if (MEMCHECK_HEADER)
set (dUSE_VALGRIND TRUE)
Expand Down

0 comments on commit 5c53c27

Please sign in to comment.