From 9608a86fa1cace7c3d4ca32c1fda699b154a8065 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 21 Jul 2023 09:19:23 +0200 Subject: [PATCH] CMake: only use REPEAT for >=3.15 --- cmake/macros/macro_deal_ii_pickup_tests.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/macros/macro_deal_ii_pickup_tests.cmake b/cmake/macros/macro_deal_ii_pickup_tests.cmake index 30a78c52d7..0dc8560eea 100644 --- a/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -89,7 +89,7 @@ function(pad_string_right output _str _length) math(EXPR _strlen "${_length} - ${_strlen}") if(_strlen GREATER 0) - if(${CMAKE_VERSION} VERSION_LESS "3.14") + if(${CMAKE_VERSION} VERSION_LESS "3.15") unset(_pad) foreach(_i RANGE 1 ${_strlen}) # inclusive string(APPEND _pad " ") @@ -109,7 +109,7 @@ function(pad_string_left output _str _length) math(EXPR _strlen "${_length} - ${_strlen}") if(_strlen GREATER 0) - if(${CMAKE_VERSION} VERSION_LESS "3.14") + if(${CMAKE_VERSION} VERSION_LESS "3.15") unset(_pad) foreach(_i RANGE 1 ${_strlen}) # inclusive string(APPEND _pad " ") -- 2.39.5