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:34:01 +0100 |
commit | f5594002a874dde4ec001bc6d06c17ea4fa2d275 (patch) | |
tree | 98f5d50a7e580e702c1fb3aa5835d1add683673b | |
parent | 4bce22ab4863b7035ec76e6757a70373cf3e9d04 (diff) | |
download | tde-cmake-f5594002a874dde4ec001bc6d06c17ea4fa2d275.tar.gz tde-cmake-f5594002a874dde4ec001bc6d06c17ea4fa2d275.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( ) |