]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: only use REPEAT for >=3.15 15775/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 21 Jul 2023 07:19:23 +0000 (09:19 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 21 Jul 2023 07:19:23 +0000 (09:19 +0200)
cmake/macros/macro_deal_ii_pickup_tests.cmake

index 30a78c52d74f12e327d4fc5fd4a9c994dda92d93..0dc8560eeac8bb214c28dc13421ec122af46dbe5 100644 (file)
@@ -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 " ")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.