Skip to content

Commit 2d19798

Browse files
committed
update FindADIOS.cmake to find names with + in it (like stdc++)
1 parent d0deedb commit 2d19798

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/FindADIOS.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ if(ADIOS_FOUND)
181181
message(STATUS "ADIOS DIRS to look for libs: ${ADIOS_LIBRARY_DIRS}")
182182

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

@@ -203,7 +203,7 @@ if(ADIOS_FOUND)
203203
endforeach()
204204

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

0 commit comments

Comments
 (0)