diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-09-19 14:32:13 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-09-19 14:32:13 (GMT) |
commit | 3117ffcbb40a88e41b2f3d28bc3c60eeb04d7499 (patch) | |
tree | 1daef21c11f57505c3f335746e9a6ecaefdfc006 /config/cmake/ConfigureChecks.cmake | |
parent | c3db70aff482b9315b59016e7dc5875a0285a2ed (diff) | |
download | hdf5-3117ffcbb40a88e41b2f3d28bc3c60eeb04d7499.zip hdf5-3117ffcbb40a88e41b2f3d28bc3c60eeb04d7499.tar.gz hdf5-3117ffcbb40a88e41b2f3d28bc3c60eeb04d7499.tar.bz2 |
[svn-r22788] HDFFV-8153: Pull POSIX_C_SOURCE define out to separate variable. Use ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS}) in non-fortran CMakeLists.txt folders
Tested: local
Diffstat (limited to 'config/cmake/ConfigureChecks.cmake')
-rw-r--r-- | config/cmake/ConfigureChecks.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake index e5669c5..84ee5b3 100644 --- a/config/cmake/ConfigureChecks.cmake +++ b/config/cmake/ConfigureChecks.cmake @@ -413,6 +413,7 @@ CHECK_INCLUDE_FILE_CONCAT ("netinet/in.h" H5_HAVE_NETINET_IN_H) # The linux-lfs option is deprecated. SET (LINUX_LFS 0) +SET (HDF5_EXTRA_C_FLAGS) SET (HDF5_EXTRA_FLAGS) IF (NOT WINDOWS) # Linux Specific flags @@ -422,7 +423,9 @@ IF (NOT WINDOWS) # correctly. # POSIX feature information can be found in the gcc manual at: # http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html - SET (HDF5_EXTRA_FLAGS -D_POSIX_C_SOURCE=199506L -D_BSD_SOURCE) + SET (HDF5_EXTRA_C_FLAGS -D_POSIX_C_SOURCE=199506L) + SET (HDF5_EXTRA_FLAGS -D_BSD_SOURCE) + OPTION (HDF5_ENABLE_LARGE_FILE "Enable support for large (64-bit) files on Linux." ON) IF (HDF5_ENABLE_LARGE_FILE) SET (msg "Performing TEST_LFS_WORKS") |