[Cmake-commits] [cmake-commits] wdicharry committed FindHDF5.cmake 1.9 1.10

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 15 13:26:46 EST 2009


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv22091

Modified Files:
	FindHDF5.cmake 
Log Message:
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.


Index: FindHDF5.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindHDF5.cmake,v
retrieving revision 1.9
retrieving revision 1.10
diff -C 2 -d -r1.9 -r1.10
*** FindHDF5.cmake	9 Dec 2009 20:17:55 -0000	1.9
--- FindHDF5.cmake	15 Dec 2009 18:26:44 -0000	1.10
***************
*** 30,33 ****
--- 30,34 ----
  # 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.
***************
*** 322,323 ****
--- 323,328 ----
      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}" )
+ 



More information about the Cmake-commits mailing list