Put threads find_package back where it was.

Moving the threads find_package affects the windows build.
This commit is contained in:
Greg Sjaardema 2021-10-05 13:03:19 -06:00 committed by GitHub
parent 7b2ad585a6
commit a007971bd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)