Fix icon name parsing in tde_install_icons

(cherry picked from commit 274366fb8b)
v3.5.13-sru
Slávek Banko 12 years ago
parent b1f7924c05
commit 275361a6da

@ -131,7 +131,7 @@ macro( tde_install_icons )
file(GLOB _icon_files *-${_icon}.png *-${_icon}.mng _icon_files *-${_icon}.svg* ) file(GLOB _icon_files *-${_icon}.png *-${_icon}.mng _icon_files *-${_icon}.svg* )
foreach( _icon_file ${_icon_files} ) foreach( _icon_file ${_icon_files} )
# FIXME need a review # FIXME need a review
string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-(.+)$" _dummy "${_icon_file}" ) string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-([^/]+)$" _dummy "${_icon_file}" )
set( _type "${CMAKE_MATCH_1}" ) set( _type "${CMAKE_MATCH_1}" )
set( _size "${CMAKE_MATCH_2}" ) set( _size "${CMAKE_MATCH_2}" )
set( _group "${CMAKE_MATCH_3}" ) set( _group "${CMAKE_MATCH_3}" )

Loading…
Cancel
Save