correct regexp in DeployMacros.cmake

This commit is contained in:
2020-05-22 12:19:50 +03:00
parent b9eda039a0
commit a2898ac737

View File

@@ -372,7 +372,7 @@ macro(__add_file_or_dir _DIR_VAR _FILE_VAR _PATH _RELPATH)
set(_p "${_RELPATH}/${_PATH}") set(_p "${_RELPATH}/${_PATH}")
endif() endif()
#if (EXISTS "${_p}") #if (EXISTS "${_p}")
if ("${_p}" MATCHES ".*/") if ("${_p}" MATCHES ".*/$")
string(LENGTH "${_p}" __sl) string(LENGTH "${_p}" __sl)
math(EXPR __sl ${__sl}-1) math(EXPR __sl ${__sl}-1)
string(SUBSTRING "${_p}" 0 ${__sl} _p) string(SUBSTRING "${_p}" 0 ${__sl} _p)