summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/TDEL10n.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake
index 0ddea20..8b2774f 100644
--- a/modules/TDEL10n.cmake
+++ b/modules/TDEL10n.cmake
@@ -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( )