diff options
author | Slávek Banko <[email protected]> | 2019-01-15 17:13:35 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-28 16:24:32 +0100 |
commit | 8a3bf7134be8d904e95f03705d0951b90cacfe84 (patch) | |
tree | 17991a1554e13624c81a1abce155680be407a71f /modules/TDEL10n.cmake | |
parent | d9d9396324d27f70532ab4e9c878cb3c9e329385 (diff) | |
download | tde-cmake-8a3bf7134be8d904e95f03705d0951b90cacfe84.tar.gz tde-cmake-8a3bf7134be8d904e95f03705d0951b90cacfe84.zip |
Update TDEL10n module
+ Use IS_ABSOLUTE ${file} instead of ${file} MATCHES "^/".
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'modules/TDEL10n.cmake')
-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( ) |