mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[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
This commit is contained in:
parent
315ab68bd1
commit
eff696a3b0
@ -955,7 +955,7 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
IF (EXISTS "${HDF5_SOURCE_DIR}/release_docs" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/release_docs")
|
||||
SET (release_files
|
||||
${HDF5_SOURCE_DIR}/release_docs/CMake.txt
|
||||
${HDF5_SOURCE_DIR}/release_docs/Using_CMake.txt
|
||||
${HDF5_SOURCE_DIR}/release_docs/USING_CMake.txt
|
||||
${HDF5_SOURCE_DIR}/release_docs/COPYING
|
||||
${HDF5_SOURCE_DIR}/release_docs/HISTORY-1_9.txt
|
||||
${HDF5_SOURCE_DIR}/release_docs/INSTALL
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_CPP)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared/Static Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -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")
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_EXAMPLES)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Define Sources
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_HL C CXX)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Shared Libs
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_PERFORM )
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup include Directories
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_SRC C CXX)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# List Source Files
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_TEST)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Define Sources
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_TEST_PAR)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
INCLUDE_DIRECTORIES (${HDF5_TEST_SRC_DIR})
|
||||
INCLUDE_DIRECTORIES (${HDF5_TOOLS_SRC_DIR}/lib )
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_TOOLS)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup include Directories
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -1,6 +1,11 @@
|
||||
cmake_minimum_required (VERSION 2.8.6)
|
||||
PROJECT (HDF5_TOOLS_LIB)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Apply Definitions to compiler in this directory and below
|
||||
#-----------------------------------------------------------------------------
|
||||
ADD_DEFINITIONS (${HDF5_EXTRA_C_FLAGS})
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Define Sources
|
||||
#-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user