Update TDEL10n module

+ Use IS_ABSOLUTE ${file} instead of ${file} MATCHES "^/".

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 8a3bf7134b)
r14.0.x
Slávek Banko 6 years ago
parent 4bce22ab48
commit f5594002a8
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -764,13 +764,13 @@ function( tde_l10n_prepare_xml )
if( NOT _source )
tde_message_fatal( "no source XML file" )
endif( )
if( NOT "${_source}" MATCHES "^/" )
if( NOT IS_ABSOLUTE "${_source}" )
set( _source "${CMAKE_CURRENT_SOURCE_DIR}/${_source}" )
endif( )
if( NOT _target )
set( _target "${_source}.tde_l10n" )
endif( )
if( NOT "${_target}" MATCHES "^/" )
if( NOT IS_ABSOLUTE "${_target}" )
set( _target "${CMAKE_CURRENT_SOURCE_DIR}/${_target}" )
endif( )
@ -978,13 +978,13 @@ function( tde_l10n_prepare_xmlattr )
if( NOT _source )
tde_message_fatal( "no source XML file" )
endif( )
if( NOT "${_source}" MATCHES "^/" )
if( NOT IS_ABSOLUTE "${_source}" )
set( _source "${CMAKE_CURRENT_SOURCE_DIR}/${_source}" )
endif( )
if( NOT _target )
set( _target "${_source}.tde_l10n" )
endif( )
if( NOT "${_target}" MATCHES "^/" )
if( NOT IS_ABSOLUTE "${_target}" )
set( _target "${CMAKE_CURRENT_SOURCE_DIR}/${_target}" )
endif( )

Loading…
Cancel
Save