summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-07-27 17:07:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-07-27 17:38:25 +0200
commit9f86304bdd4be37b625ee3ae9d37f2c4006dea14 (patch)
tree35e66e7f3b6b1fb38eeb3a2334477b49b54ac025
parent3bbc0e4d62a37030bf87675a33002ecf91b27107 (diff)
downloadcmake-9f86304b.tar.gz
cmake-9f86304b.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>
-rw-r--r--modules/TDEMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index f4f3b4f..07f161f 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}" )