mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r25291] Fix for:
HDFFV-8653 replace non-standard sizeof in the fortran tests with c_sizeof
This commit is contained in:
parent
9cf0844928
commit
7d3ff84d59
@ -21,10 +21,15 @@ set_target_properties (${HDF5_F90_C_TEST_LIB_TARGET} PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
|
||||
# See if the F2008 intrinsic STORAGE_SIZE and C_SIZEOF are supported. If not then
|
||||
# fall back to F2003. If F2003 not supported then use F90 for the tests.
|
||||
|
||||
if (FORTRAN_HAVE_STORAGE_SIZE AND FORTRAN_HAVE_C_SIZEOF)
|
||||
add_library (${HDF5_F90_TEST_LIB_TARGET} ${LIB_TYPE} tf_F08.f90 tf.f90)
|
||||
else (FORTRAN_HAVE_STORAGE_SIZE AND FORTRAN_HAVE_C_SIZEOF)
|
||||
elseif (HDF5_ENABLE_F2003)
|
||||
add_library (${HDF5_F90_TEST_LIB_TARGET} ${LIB_TYPE} tf_F03.f90 tf.f90)
|
||||
else (FORTRAN_HAVE_STORAGE_SIZE AND FORTRAN_HAVE_C_SIZEOF)
|
||||
add_library (${HDF5_F90_TEST_LIB_TARGET} ${LIB_TYPE} tf_F90.f90 tf.f90)
|
||||
endif (FORTRAN_HAVE_STORAGE_SIZE AND FORTRAN_HAVE_C_SIZEOF)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user