From 31a11575ca39b9528b1d8fb52eb953114e1e4d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 27 Jul 2020 17:07:44 +0200 Subject: [PATCH] tde_create_translated_desktop: Fix CMP0054 warning in case of special desktop file name that could be the same as the keyword. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 9f86304bdd4be37b625ee3ae9d37f2c4006dea14) --- modules/TDEMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" )