From 308eb788e67ed6a521818ef26a8cd8638442d06b Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Mon, 5 Apr 2021 03:10:00 +0200 Subject: [PATCH] Allow the script to work in older cmake --- cmake/StringUtility.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/StringUtility.cmake b/cmake/StringUtility.cmake index 3e8b4614..00c5ba5c 100644 --- a/cmake/StringUtility.cmake +++ b/cmake/StringUtility.cmake @@ -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)