You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FindCURL module is not always found on windows; set paths manually
126
-
if (WIN32)
127
-
set (CURL_INCLUDE_DIRS "${CURL_ROOT}\\include")
128
-
set (LINK_LIBS ${LINK_LIBS} Ws2_32.lib Wldap32.lib)
129
-
130
-
if (CURL_USE_STATIC_LIBRARIES)
131
-
set (CURL_LIBRARIES "${CURL_ROOT}\\lib\\libcurl.lib")
132
-
else ()
133
-
set (CURL_LIBRARIES "${CURL_ROOT}\\bin\\libcurl.dll")
134
-
endif()
135
-
endif()
136
-
137
125
include_directories(${CURL_INCLUDE_DIRS})
138
-
set (LINK_LIBS ${LINK_LIBS}${CURL_LIBRARIES})
126
+
set (LINK_LIBS ${LINK_LIBS}CURL::libcurl)
139
127
else ()
140
128
message (FATAL_ERROR "cURL not found; please check CURL_ROOT")
141
129
endif ()
@@ -386,10 +374,6 @@ if (BUILD_STATIC_LIBS)
386
374
set (HDF5_VOL_REST_ENABLE_STATIC_LIB YES)
387
375
set (LINK_STATIC_LIBS ${LINK_LIBS})
388
376
set (HDF5_VOL_REST_LIBRARIES_TO_EXPORT ${HDF5_VOL_REST_LIBRARIES_TO_EXPORT}${HDF5_VOL_REST_LIB_TARGET}CACHEINTERNAL"Store which libraries should be exported" FORCE)
389
-
# Value is not automatically inherited from cache on Windows
390
-
# if (WIN32)
391
-
# set (HDF5_VOL_REST_LIBRARIES_TO_EXPORT ${HDF5_VOL_REST_LIBRARIES_TO_EXPORT} ${HDF5_VOL_REST_LIB_TARGET})
0 commit comments