Skip to content

Commit

Permalink
fix stray comment undermining endif()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Sep 25, 2019
1 parent 2aedc6b commit c99c212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmake/thirdparty/SetupHDF5.cmake
Expand Up @@ -188,7 +188,7 @@ endif()
# parse include flags (key = AM_CPPFLAGS)
#######
string(REGEX MATCHALL "AM_CPPFLAGS: .+\n" hdf5_tpl_inc_flags ${_HDF5_CC_CONFIG_VALUE})
#strip prefix
# strip prefix
string(REGEX REPLACE "AM_CPPFLAGS: " "" hdf5_tpl_inc_flags ${hdf5_tpl_inc_flags})
# strip after
string(FIND "${hdf5_tpl_inc_flags}" "\n" hdf5_tpl_inc_flags_end_pos)
Expand All @@ -201,20 +201,20 @@ endif()
# parse -L flags (key = AM_LDFLAGS)
#######
string(REGEX MATCHALL "AM_LDFLAGS: .+\n" hdf5_tpl_lnk_flags ${_HDF5_CC_CONFIG_VALUE})
#strip prefix
# strip prefix
string(REGEX REPLACE "AM_LDFLAGS: " "" hdf5_tpl_lnk_flags ${hdf5_tpl_lnk_flags})
# strip after
string(FIND "${hdf5_tpl_lnk_flags}" "\n" hdf5_tpl_lnk_flags_end_pos)
string(SUBSTRING "${hdf5_tpl_lnk_flags}" 0 ${hdf5_tpl_lnk_flags_end_pos} hdf5_tpl_lnk_flags)
# only do final strip if not empty
if(${hdf5_tpl_lnk_flags})
string(STRIP "${hdf5_tpl_lnk_flags}" hdf5_tpl_lnk_flags)
#endif()
endif()
#######
# parse -l flags (key = Extra libraries)
#######
string(REGEX MATCHALL "Extra libraries: .+\n" hdf5_tpl_lnk_libs ${_HDF5_CC_CONFIG_VALUE})
#strip prefix
# strip prefix
string(REGEX REPLACE "Extra libraries: " "" hdf5_tpl_lnk_libs ${hdf5_tpl_lnk_libs})
# strip after
string(FIND "${hdf5_tpl_lnk_libs}" "\n" hdf5_tpl_lnk_libs_end_pos)
Expand Down

0 comments on commit c99c212

Please sign in to comment.