[Cmake-commits] [cmake-commits] wdicharry committed FindHDF5.cmake 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Aug 24 13:24:59 EDT 2009


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

Modified Files:
	FindHDF5.cmake 
Log Message:
Fixed HDF5 Find module error that caused no list to be passed into remove duplicates when HDF5 is not found.



Index: FindHDF5.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindHDF5.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** FindHDF5.cmake	24 Aug 2009 16:04:35 -0000	1.1
--- FindHDF5.cmake	24 Aug 2009 17:24:57 -0000	1.2
***************
*** 254,261 ****
      # process for the language bindings (both the C and C++ bindings depend on
      # libz for example).  Remove the duplicates.
!     list( REMOVE_DUPLICATES HDF5_INCLUDE_DIR )
!     list( REMOVE_DUPLICATES HDF5_LIBRARIES_DEBUG )
!     list( REMOVE_DUPLICATES HDF5_LIBRARIES_RELEASE )
!     list( REMOVE_DUPLICATES HDF5_LIBRARY_DIRS )
  
      # Construct the complete list of HDF5 libraries with debug and optimized
--- 254,269 ----
      # process for the language bindings (both the C and C++ bindings depend on
      # libz for example).  Remove the duplicates.
!     if( HDF5_INCLUDE_DIR )
!         list( REMOVE_DUPLICATES HDF5_INCLUDE_DIR )
!     endif()
!     if( HDF5_LIBRARIES_DEBUG )
!         list( REMOVE_DUPLICATES HDF5_LIBRARIES_DEBUG )
!     endif()
!     if( HDF5_LIBRARIES_RELEASE )
!         list( REMOVE_DUPLICATES HDF5_LIBRARIES_RELEASE )
!     endif()
!     if( HDF5_LIBRARY_DIRS )
!         list( REMOVE_DUPLICATES HDF5_LIBRARY_DIRS )
!     endif()
  
      # Construct the complete list of HDF5 libraries with debug and optimized



More information about the Cmake-commits mailing list