summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-04-20 18:17:25 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-04-20 18:17:25 (GMT)
commit27be7d1e2d95618c72bbefbed54e644b3b2d21ae (patch)
tree340f1389648dbe534a5182edbe32d5a86227f92a /CMakeLists.txt
parent6b50db00cb90e1bd6854c2713411127161be362d (diff)
downloadhdf5-27be7d1e2d95618c72bbefbed54e644b3b2d21ae.zip
hdf5-27be7d1e2d95618c72bbefbed54e644b3b2d21ae.tar.gz
hdf5-27be7d1e2d95618c72bbefbed54e644b3b2d21ae.tar.bz2
[svn-r20572] Bug #5929: On windows check for existence of InitOnceExecuteOnce for use by threads.
merge from 1.8 r20568
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d17ec97..0fadb56 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -609,8 +609,10 @@ IF (WIN32 AND NOT CYGWIN)
MESSAGE (FATAL " **** Parallel and Threadsafe options are mutually exclusive **** ")
ENDIF (HDF5_ENABLE_PARALLEL)
SET (H5_HAVE_THREADSAFE 1)
- SET (H5_HAVE_WIN_THREADS 1)
+ IF (H5_HAVE_IOEO)
MESSAGE (STATUS " **** Windows Threads only available in WINVER>=0x600 (Vista or Windows 7)**** ")
+ SET (H5_HAVE_WIN_THREADS 1)
+ ENDIF (H5_HAVE_IOEO)
ENDIF (HDF5_ENABLE_THREADSAFE)
ENDIF (WIN32 AND NOT CYGWIN)