diff options
author | H. Joe Lee <hyoklee@hdfgroup.org> | 2024-02-21 19:54:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 19:54:24 (GMT) |
commit | d4b43e0b438057c004b817750f424e66d2c3770e (patch) | |
tree | 173d1c2021c509a7bc63a8d195e64cf94be6fba9 /config | |
parent | 0f56048a048b3baed2a0235e6ed5dc785cd34050 (diff) | |
download | hdf5-d4b43e0b438057c004b817750f424e66d2c3770e.zip hdf5-d4b43e0b438057c004b817750f424e66d2c3770e.tar.gz hdf5-d4b43e0b438057c004b817750f424e66d2c3770e.tar.bz2 |
Check argument for CMake REGEX FCMangle.h. (#4029)
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDFUseFortran.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/cmake/HDFUseFortran.cmake b/config/cmake/HDFUseFortran.cmake index 61adffd..1389aaf 100644 --- a/config/cmake/HDFUseFortran.cmake +++ b/config/cmake/HDFUseFortran.cmake @@ -31,6 +31,12 @@ endif () # Detect name mangling convention used between Fortran and C #----------------------------------------------------------------------------- include (FortranCInterface) + +#----------------------------------------------------------------------------- +# Verify that the Fortran and C/C++ compilers work together +#----------------------------------------------------------------------------- +FortranCInterface_VERIFY() + FortranCInterface_HEADER ( ${CMAKE_BINARY_DIR}/FCMangle.h MACRO_NAMESPACE "H5_FC_" @@ -38,11 +44,11 @@ FortranCInterface_HEADER ( ) file (STRINGS ${CMAKE_BINARY_DIR}/FCMangle.h CONTENTS REGEX "H5_FC_GLOBAL\\(.*,.*\\) +(.*)") -string (REGEX MATCH "H5_FC_GLOBAL\\(.*,.*\\) +(.*)" RESULT ${CONTENTS}) +string (REGEX MATCH "H5_FC_GLOBAL\\(.*,.*\\) +(.*)" RESULT ${CONTENTS}) set (H5_FC_FUNC "H5_FC_FUNC(name,NAME) ${CMAKE_MATCH_1}") file (STRINGS ${CMAKE_BINARY_DIR}/FCMangle.h CONTENTS REGEX "H5_FC_GLOBAL_\\(.*,.*\\) +(.*)") -string (REGEX MATCH "H5_FC_GLOBAL_\\(.*,.*\\) +(.*)" RESULT ${CONTENTS}) +string (REGEX MATCH "H5_FC_GLOBAL_\\(.*,.*\\) +(.*)" RESULT ${CONTENTS}) set (H5_FC_FUNC_ "H5_FC_FUNC_(name,NAME) ${CMAKE_MATCH_1}") #test code source |