From: Peter Munch Date: Fri, 21 Jul 2023 07:19:23 +0000 (+0200) Subject: CMake: only use REPEAT for >=3.15 X-Git-Tag: relicensing~659^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15775%2Fhead;p=dealii.git CMake: only use REPEAT for >=3.15 --- 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 " ")