Skip to content

Commit

Permalink
update FindADIOS.cmake to find names with + in it (like stdc++)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Jun 30, 2017
1 parent d0deedb commit 2d19798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/FindADIOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if(ADIOS_FOUND)
message(STATUS "ADIOS DIRS to look for libs: ${ADIOS_LIBRARY_DIRS}")

# parse all -lname libraries and find an absolute path for them
string(REGEX MATCHALL " -l([A-Za-z_0-9\\.-]+)" _ADIOS_LIBS " ${ADIOS_LINKFLAGS}")
string(REGEX MATCHALL " -l([A-Za-z_0-9\\.\\-\\+]+)" _ADIOS_LIBS " ${ADIOS_LINKFLAGS}")
foreach(_LIB ${_ADIOS_LIBS})
string(REPLACE " -l" "" _LIB ${_LIB})

Expand All @@ -203,7 +203,7 @@ if(ADIOS_FOUND)
endforeach()

#add libraries which are already using cmake format
string(REGEX MATCHALL "/([A-Za-z_0-9/\\.-]+)\\.([a|so]+)" _ADIOS_LIBS_SUB "${ADIOS_LINKFLAGS}")
string(REGEX MATCHALL "/([A-Za-z_0-9/\\.\\-\\+]+)\\.([a|so]+)" _ADIOS_LIBS_SUB "${ADIOS_LINKFLAGS}")
foreach(foo ${_ADIOS_LIBS_SUB})
if (EXISTS ${foo})
message("Appending: ${foo}")
Expand Down

0 comments on commit 2d19798

Please sign in to comment.