summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-09-05 22:25:27 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-09-05 22:25:27 (GMT)
commit677f8e6f31d756efb5f5259c6aea79d766d60639 (patch)
tree71fec7dfa061ab90871e9f0597a47ebda0463b54
parentbad125a071d6bb2b4ed958ebcdbd04d14f23bd1e (diff)
downloadhdf5-677f8e6f31d756efb5f5259c6aea79d766d60639.zip
hdf5-677f8e6f31d756efb5f5259c6aea79d766d60639.tar.gz
hdf5-677f8e6f31d756efb5f5259c6aea79d766d60639.tar.bz2
Add include dirs and default lib for windows
-rw-r--r--config/cmake/ConfigureChecks.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 8230df8..ae76d1e 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -163,11 +163,15 @@ option (HDF5_ENABLE_ROS3_VFD "Build the ROS3 Virtual File Driver" OFF)
if(CMAKE_VERSION VERSION_LESS "3.13.0" AND WIN32)
MESSAGE(FATAL_ERROR "Windows builds for this option requires a minimum of CMake 3.13")
endif ()
+ if (WIN32)
+ set (CURL_LIBRARY "-lcurl")
+ endif ()
find_package(CURL REQUIRED)
find_package(OpenSSL REQUIRED)
if (${CURL_FOUND} AND ${OPENSSL_FOUND})
set (${HDF_PREFIX}_HAVE_ROS3_VFD 1)
list (APPEND LINK_LIBS ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
+ INCLUDE_DIRECTORIES (${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIRS})
else ()
message (STATUS "The Read-Only S3 VFD was requested but cannot be built.\nPlease check that openssl and cURL are available on your\nsystem, and/or re-configure without option HDF5_ENABLE_ROS3_VFD.")
endif ()