From 1f115749c4e53c2cd83744fd4008897b3cb96e77 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 6 Oct 2011 14:25:13 -0500 Subject: [svn-r21481] Add option to enable windows stdio --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7209ea..fb1c0c6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -250,6 +250,16 @@ IF (WIN32 AND NOT CYGWIN) ENDIF (WIN32 AND NOT CYGWIN) #----------------------------------------------------------------------------- +# Option to enable use of stdio instead of posix io +#----------------------------------------------------------------------------- +IF (WIN32) + OPTION (HDF5_ENABLE_WINDOWS_STDIO "Enable use of stdio instead of posix io" OFF) + IF (HDF5_ENABLE_WINDOWS_STDIO) + SET (H5_WINDOWS_USE_STDIO 1) + ENDIF (HDF5_ENABLE_WINDOWS_STDIO) +ENDIF (WIN32) + +#----------------------------------------------------------------------------- # Option to Build Shared/Static libs, default is static #----------------------------------------------------------------------------- OPTION (BUILD_SHARED_LIBS "Build Shared Libraries" OFF) -- cgit v0.12