summaryrefslogtreecommitdiffstats
path: root/config/cmake/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-09-05 20:41:07 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-09-05 20:41:07 (GMT)
commit9857dc553f49084f9039ae2e8d5f80420bf53b56 (patch)
tree29a27c76685b8dafe9567fe921ebc82058603f57 /config/cmake/ConfigureChecks.cmake
parent60cc470a359f13eba31945c396a58fd96a490f35 (diff)
downloadhdf5-9857dc553f49084f9039ae2e8d5f80420bf53b56.zip
hdf5-9857dc553f49084f9039ae2e8d5f80420bf53b56.tar.gz
hdf5-9857dc553f49084f9039ae2e8d5f80420bf53b56.tar.bz2
Update Windows require for CURL to CMake 3.13
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-rw-r--r--config/cmake/ConfigureChecks.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 24947f2..8230df8 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -159,8 +159,9 @@ endif ()
#-----------------------------------------------------------------------------
option (HDF5_ENABLE_ROS3_VFD "Build the ROS3 Virtual File Driver" OFF)
if (HDF5_ENABLE_ROS3_VFD)
- if (WIN32)
- set(CURL_LIBRARY "-lcurl")
+ # CMake version 3.13 fixed FindCURL module
+ 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 ()
find_package(CURL REQUIRED)
find_package(OpenSSL REQUIRED)