Allow the script to work in older cmake
This commit is contained in:
parent
62919343c3
commit
308eb788e6
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ function(string_left_pad VAR INPUT LENGTH FILLCHAR)
|
|||
set(_output "${INPUT}")
|
||||
string(LENGTH "${_output}" _length)
|
||||
while(_length LESS "${LENGTH}")
|
||||
string(PREPEND _output "${FILLCHAR}")
|
||||
set(_output "${FILLCHAR}${_output}")
|
||||
string(LENGTH "${_output}" _length)
|
||||
endwhile()
|
||||
set("${VAR}" "${_output}" PARENT_SCOPE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue