summaryrefslogtreecommitdiffstats
path: root/Modules/FindHDF5.cmake
diff options
context:
space:
mode:
authorWill Dicharry <wdicharry@stellarscience.com>2009-12-15 18:26:44 (GMT)
committerWill Dicharry <wdicharry@stellarscience.com>2009-12-15 18:26:44 (GMT)
commit7bc90c3edfdbeec5209151a94390f8d6c96adc97 (patch)
treebdf9c5c0150220a8f606eeab507c89f4535abcf9 /Modules/FindHDF5.cmake
parentece03cadc46e9afa954194a93c9dc55764ea05e9 (diff)
downloadCMake-7bc90c3edfdbeec5209151a94390f8d6c96adc97.zip
CMake-7bc90c3edfdbeec5209151a94390f8d6c96adc97.tar.gz
CMake-7bc90c3edfdbeec5209151a94390f8d6c96adc97.tar.bz2
Set value of HDF5_INCLUDE_DIR for backwards compatibility.
CMake 2.8 was released with the FindHDF5 module setting HDF5_INCLUDE_DIR rather than the correct plural HDF5_INCLUDE_DIRS. Since this went into a release, it is now necessary to set the singular for backwards compatibility.
Diffstat (limited to 'Modules/FindHDF5.cmake')
-rw-r--r--Modules/FindHDF5.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index d94d110..a3c7105 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -29,6 +29,7 @@
#
# This module will define the following variables:
# HDF5_INCLUDE_DIRS - Location of the hdf5 includes
+# HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)
# HDF5_DEFINITIONS - Required compiler definitions for HDF5
# HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings.
# HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings
@@ -321,3 +322,7 @@ mark_as_advanced(
HDF5_C_COMPILER_EXECUTABLE
HDF5_CXX_COMPILER_EXECUTABLE )
+# For backwards compatibility we set HDF5_INCLUDE_DIR to the value of
+# HDF5_INCLUDE_DIRS
+set( HDF5_INCLUDE_DIR "${HDF5_INCLUDE_DIRS}" )
+