Commit da914e3f authored by Ghislain MARY's avatar Ghislain MARY

Prevent infinite loop in CMake.

parent b94f3ae7
......@@ -365,6 +365,7 @@ macro(linphone_builder_set_ep_directories PROJNAME)
while(idx GREATER -1)
string(CONCAT updirs "${updirs}" "../")
math(EXPR idx "${idx}+1")
math(EXPR relative_build_length "${relative_build_length}-${idx}")
string(SUBSTRING "${ep_relative_build}" ${idx} ${relative_build_length} ep_relative_build)
string(FIND "${ep_relative_build}" "/" idx)
endwhile()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment