summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-22 19:23:05 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-22 19:23:05 (GMT)
commit64733980e5f595ab6e267405284a4461261644ea (patch)
tree7ff971166c5eb05754314dbfed0a20e696e6e201 /config/cmake
parent9877da0a6f8ec843926f11468c39121b81b40402 (diff)
downloadhdf5-64733980e5f595ab6e267405284a4461261644ea.zip
hdf5-64733980e5f595ab6e267405284a4461261644ea.tar.gz
hdf5-64733980e5f595ab6e267405284a4461261644ea.tar.bz2
HDFFV-10845 Allow mingw to find functionality
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/ConfigureChecks.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index c1abeed..3bd0553 100644
--- a/config/cmake/ConfigureChecks.cmake
+++ b/config/cmake/ConfigureChecks.cmake
@@ -102,7 +102,7 @@ endif ()
CHECK_FUNCTION_EXISTS (difftime ${HDF_PREFIX}_HAVE_DIFFTIME)
# Find the library containing clock_gettime()
-if (NOT WINDOWS)
+if (MINGW OR NOT WINDOWS)
CHECK_FUNCTION_EXISTS (clock_gettime CLOCK_GETTIME_IN_LIBC)
CHECK_LIBRARY_EXISTS (rt clock_gettime "" CLOCK_GETTIME_IN_LIBRT)
CHECK_LIBRARY_EXISTS (posix4 clock_gettime "" CLOCK_GETTIME_IN_LIBPOSIX4)