summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@users.noreply.github.com>2024-03-09 18:25:40 (GMT)
committerGitHub <noreply@github.com>2024-03-09 18:25:40 (GMT)
commitb1054b4ef3269fa16724cd3a73adffa557721518 (patch)
tree6048507d5eb0a2eefd096294f49b0ee2893a53e1
parentc29a02d5e6fe8c8f6b5872e5db9dca900daee953 (diff)
downloadhdf5-b1054b4ef3269fa16724cd3a73adffa557721518.zip
hdf5-b1054b4ef3269fa16724cd3a73adffa557721518.tar.gz
hdf5-b1054b4ef3269fa16724cd3a73adffa557721518.tar.bz2
msvc: don't declare `HAVE_TIMEZONE` for older MSVC (#3956)
It was introduced in MSVC 15 (Visual Studio 2017).
-rw-r--r--config/cmake/ConfigureChecks.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 37f306e..5975533 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -78,7 +78,9 @@ if (WINDOWS)
endif ()
if (NOT UNIX AND NOT CYGWIN)
set (${HDF_PREFIX}_HAVE_GETCONSOLESCREENBUFFERINFO 1)
- set (${HDF_PREFIX}_HAVE_TIMEZONE 1)
+ if (MSVC_VERSION GREATER_EQUAL 1900)
+ set (${HDF_PREFIX}_HAVE_TIMEZONE 1)
+ endif ()
set (${HDF_PREFIX}_HAVE_GETTIMEOFDAY 1)
set (${HDF_PREFIX}_HAVE_LIBWS2_32 1)
set (${HDF_PREFIX}_HAVE_LIBWSOCK32 1)