summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-09-18 22:08:07 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-09-18 22:08:07 (GMT)
commiteff696a3b0267e89e73c08b078131b0394388449 (patch)
tree6bbc47689b9883dd83e0d550dcf9e8ba7040ce32 /config
parent315ab68bd117a2c7f89b220a37adcf35b93d7c03 (diff)
downloadhdf5-eff696a3b0267e89e73c08b078131b0394388449.zip
hdf5-eff696a3b0267e89e73c08b078131b0394388449.tar.gz
hdf5-eff696a3b0267e89e73c08b078131b0394388449.tar.bz2
[svn-r22785] 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: jam with intel compilers
Diffstat (limited to 'config')
-rw-r--r--config/cmake/ConfigureChecks.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/cmake/ConfigureChecks.cmake b/config/cmake/ConfigureChecks.cmake
index 0940418..4f4f759 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")