Browse Source

Fixed link order dependence in FindHDF5 module for static link.

Will Dicharry 16 years ago
parent
commit
ea34662053
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Modules/FindHDF5.cmake

+ 2 - 2
Modules/FindHDF5.cmake

@@ -161,8 +161,8 @@ else()
     endif()
     
     # seed the initial lists of libraries to find with items we know we need
-    set( HDF5_C_LIBRARY_NAMES_INIT hdf5 hdf5_hl )
-    set( HDF5_CXX_LIBRARY_NAMES_INIT ${HDF5_C_LIBRARY_NAMES_INIT} hdf5_cpp )
+    set( HDF5_C_LIBRARY_NAMES_INIT hdf5_hl hdf5 )
+    set( HDF5_CXX_LIBRARY_NAMES_INIT hdf5_cpp ${HDF5_C_LIBRARY_NAMES_INIT} )
     
     foreach( LANGUAGE ${HDF5_LANGUAGE_BINDINGS} )
         if( HDF5_${LANGUAGE}_COMPILE_LINE )