Put threads find_package back where it was.
Moving the threads find_package affects the windows build.
@@ -794,6 +794,8 @@ IF(USE_HDF5)
IF(NOT HDF5_C_LIBRARY)
SET(HDF5_C_LIBRARY hdf5)
ENDIF()
+
+ FIND_PACKAGE(Threads)
ENDIF(HDF5_C_LIBRARY AND HDF5_HL_LIBRARY AND HDF5_INCLUDE_DIR)
# There is a missing case in the above code so default it
@@ -925,8 +927,6 @@ IF(USE_HDF5)
ENDIF(USE_HDF5)
-FIND_PACKAGE(Threads)
-
# See if we have libcurl
FIND_PACKAGE(CURL)
ADD_DEFINITIONS(-DCURL_STATICLIB=1)
