Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: only use REPEAT for >=3.15 #15775

Merged
merged 1 commit into from
Jul 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/macros/macro_deal_ii_pickup_tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 " ")
Expand All @@ -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 " ")
Expand Down