Files
cgal/CMake/cmake/modules/FindMatchingItem.cmake
T
Fernando Cacciola d16a973d53 Testresults: Extract and report GMP and MPFR version.
Testresults: Report flags
Testresults: Fixed libXYZ names and shared/static case
2008-05-19 16:31:32 +00:00

17 lines
360 B
CMake

macro( find_matching_item list regex output )
set( ${output} "NOTFOUND" )
foreach( ${list}_row__ ${${list}} )
if ( ${list}_row__ MATCHES ${regex} )
set( ${output} "${${list}_row__}" )
endif( ${list}_row__ MATCHES ${regex} )
endforeach( ${list}_row__ ${${list}} )
endmacro( find_matching_item list regex output )