--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1241,6 +1241,7 @@
           "$<$<BOOL:${HDF5_ENABLE_TRACE}>:H5_DEBUG_API>" # Enable tracing of the API
           "$<$<BOOL:${HDF5_ENABLE_DEBUG_APIS}>:${HDF5_DEBUG_APIS}>"
           "$<$<CONFIG:Developer>:${HDF5_DEVELOPER_DEFS}>"
+          CURL_STATICLIB
   )
   TARGET_C_PROPERTIES (${HDF5_LIB_TARGET} STATIC)
   target_link_libraries (${HDF5_LIB_TARGET}
