diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-15 17:13:35 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-28 16:35:11 +0100 |
commit | 05ed76c79deed672e811663b068e8ce5d6bfcf3c (patch) | |
tree | c74f69a8958cabc3304929cb212e0c085f0b7243 | |
parent | f43bab5f155c424a669406e5a2429eb0d925b10e (diff) | |
download | tde-cmake-05ed76c79deed672e811663b068e8ce5d6bfcf3c.tar.gz tde-cmake-05ed76c79deed672e811663b068e8ce5d6bfcf3c.zip |
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 8a3bf7134be8d904e95f03705d0951b90cacfe84)
-rw-r--r-- | modules/TDEL10n.cmake | 8 |
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( ) |