mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
Check argument for CMake REGEX FCMangle.h. (#4029)
This commit is contained in:
parent
0f56048a04
commit
d4b43e0b43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user