diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-11-13 19:52:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 19:52:31 (GMT) |
commit | 378e99079bd8904e96a9c68b4203becf642fc3de (patch) | |
tree | 98c4f8233877a4a2e95c037a38ab6fb041c871db /fortran/src/CMakeLists.txt | |
parent | 28d2b6771f41396f1e243e00cb9dd57c4c891613 (diff) | |
download | hdf5-378e99079bd8904e96a9c68b4203becf642fc3de.zip hdf5-378e99079bd8904e96a9c68b4203becf642fc3de.tar.gz hdf5-378e99079bd8904e96a9c68b4203becf642fc3de.tar.bz2 |
cmakedefine macro uses C comments with "#undef" (#3845)
* Correct CMake macro name
* Use ifdef for H5_HAVE_FLOAT128 like elsewhere
Diffstat (limited to 'fortran/src/CMakeLists.txt')
-rw-r--r-- | fortran/src/CMakeLists.txt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index d054503..87557db 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -37,10 +37,25 @@ if (H5_HAVE_PARALLEL) endif () set (CMAKE_H5_HAVE_FLOAT128 0) -if (HAVE_FLOAT128) +if (H5_HAVE_FLOAT128) set (CMAKE_H5_HAVE_FLOAT128 1) endif () +set (CMAKE_H5_FORTRAN_HAVE_STORAGE_SIZE 0) +if (H5_FORTRAN_HAVE_STORAGE_SIZE) + set (CMAKE_H5_FORTRAN_HAVE_STORAGE_SIZE 1) +endif () + +set (CMAKE_H5_FORTRAN_HAVE_SIZEOF 0) +if (H5_FORTRAN_HAVE_SIZEOF) + set (CMAKE_H5_FORTRAN_HAVE_SIZEOF 1) +endif () + +set (CMAKE_H5_FORTRAN_HAVE_C_SIZEOF 0) +if (H5_FORTRAN_HAVE_C_SIZEOF) + set (CMAKE_H5_FORTRAN_HAVE_C_SIZEOF 1) +endif () + configure_file (${HDF5_F90_SRC_SOURCE_DIR}/H5config_f.inc.cmake ${HDF5_F90_BINARY_DIR}/H5config_f.inc @ONLY) configure_file (${HDF5_F90_SRC_SOURCE_DIR}/H5fort_type_defines.h.cmake ${HDF5_F90_BINARY_DIR}/H5fort_type_defines.h @ONLY) |