Compare commits

2 Commits

View File

@@ -389,7 +389,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)