summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-06-14 20:31:12 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-06-14 20:31:12 (GMT)
commit84f6de6f28553171029bc61560eb869bc2207fa2 (patch)
tree2cee1ba5240f6a5fcf553e4062e3e3f026eff007
parent7d5d8a45be817bc41479cf9c42adb4b2cee8495c (diff)
downloadhdf5-84f6de6f28553171029bc61560eb869bc2207fa2.zip
hdf5-84f6de6f28553171029bc61560eb869bc2207fa2.tar.gz
hdf5-84f6de6f28553171029bc61560eb869bc2207fa2.tar.bz2
[svn-r19001] Corrected large file option
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 913ea64..27fb1a8 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -78,15 +78,17 @@ IF (HDF5_WANT_DCONV_EXCEPTION)
ENDIF (HDF5_WANT_DCONV_EXCEPTION)
SET (LINUX_LFS 0)
+SET (HDF5_EXTRA_FLAGS)
IF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
# Linux Specific flags
ADD_DEFINITIONS (-D_POSIX_SOURCE -D_BSD_SOURCE)
OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON)
IF (HDF5_ENABLE_LARGE_FILE)
SET (LARGEFILE 1)
+ SET (HDF5_EXTRA_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
+ SET (CMAKE_REQUIRED_DEFINITIONS ${HDF5_EXTRA_FLAGS})
ENDIF (HDF5_ENABLE_LARGE_FILE)
ENDIF (CMAKE_SYSTEM MATCHES "Linux-([3-9]\\.[0-9]|2\\.[4-9])\\.")
-SET (HDF5_EXTRA_FLAGS)
IF (LINUX_LFS)
SET (HDF5_EXTRA_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
SET (CMAKE_REQUIRED_DEFINITIONS ${HDF5_EXTRA_FLAGS})