diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-27 17:07:44 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-29 18:36:25 +0200 |
commit | 31a11575ca39b9528b1d8fb52eb953114e1e4d85 (patch) | |
tree | aaf2e2a73ae42bafddd04a30c2db27715445b104 /modules/TDEMacros.cmake | |
parent | 80ab8717cc0b9514786c1992e130c753d16590eb (diff) | |
download | tde-cmake-31a11575ca39b9528b1d8fb52eb953114e1e4d85.tar.gz tde-cmake-31a11575ca39b9528b1d8fb52eb953114e1e4d85.zip |
tde_create_translated_desktop: Fix CMP0054 warning in case of special
desktop file name that could be the same as the keyword.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 9f86304bdd4be37b625ee3ae9d37f2c4006dea14)
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 235a751..f86abc4 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1898,7 +1898,7 @@ macro( tde_create_translated_desktop ) file( MAKE_DIRECTORY "${_binary_basedir}" ) # process source file as a configuration file if necessary - if( "${_src}" MATCHES "\\.cmake$" ) + if( "+${_src}" MATCHES "\\.cmake$" ) configure_file( ${_src} ${_basename} @ONLY ) set( _src "${CMAKE_CURRENT_BINARY_DIR}/${_basename}" ) string( REGEX REPLACE "\\.cmake$" "" _basename "${_basename}" ) |