mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[svn-r25480] Added error if Fortran's default real is double precision. If it is and HL is being built then configure returns an error. This is due to HDFFV-889.
Tested: jam with intel cmake options: -DCMAKE_Fortran_FLAGS:STRING="-r8" (should fail) and -DHDF5_BUILD_HL_LIB:BOOL=OFF (should pass)
This commit is contained in:
parent
161ab14bbd
commit
65e3b596e3
@ -703,7 +703,6 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
endif (HDF5_ENABLE_SZIP_SUPPORT AND SZIP_FOUND)
|
||||
endif (HDF5_PACKAGE_EXTLIBS)
|
||||
endif (NOT HDF5_EXTERNALLY_CONFIGURED)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Option to use threadsafe
|
||||
# Note: Currently CMake only allows configuring of threadsafe on
|
||||
@ -880,6 +879,16 @@ if (EXISTS "${HDF5_SOURCE_DIR}/hl" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/hl")
|
||||
endif (HDF5_BUILD_HL_LIB)
|
||||
endif (EXISTS "${HDF5_SOURCE_DIR}/hl" AND IS_DIRECTORY "${HDF5_SOURCE_DIR}/hl")
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Check if Fortran's default real is double precision. If it is and HL is
|
||||
# being built then configure should fail due to bug HDFFV-889.
|
||||
#-----------------------------------------------------------------------------
|
||||
if (HDF5_BUILD_FORTRAN AND HDF5_BUILD_HL_LIB )
|
||||
if (NOT FORTRAN_DEFAULT_REAL_NOT_DOUBLE)
|
||||
message (FATAL_ERROR " **** Fortran high-level routines are not supported when the default REAL is DOUBLE PRECISION, use HDF5_BUILD_HL_LIB:BOOL=OFF **** ")
|
||||
endif (NOT FORTRAN_DEFAULT_REAL_NOT_DOUBLE)
|
||||
endif (HDF5_BUILD_FORTRAN AND HDF5_BUILD_HL_LIB )
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# Generate the H5pubconf.h file containing user settings needed by compilation
|
||||
#-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user