This is an archive of the discontinued LLVM Phabricator instance.

VERSION_GREATER_EQUAL not supported in llvm's minimum required cmake version
ClosedPublic

Authored by rs on Jan 28 2019, 6:56 AM.

Details

Summary

Patch https://reviews.llvm.org/D56329 caused build failures for me when building on Windows because of the use of cmake operator 'VERSION_GREATER_EQUAL' which isn't supported in older versions of cmake. The llvm website states that minimum required version of cmake for building llvm is 3.4.3 https://llvm.org/docs/CMake.html

Diff Detail

Repository
rL LLVM

Event Timeline

rs created this revision.Jan 28 2019, 6:56 AM
aganea accepted this revision.Jan 28 2019, 7:03 AM
aganea added a subscriber: rnk.

Thank you for fixing this! Looks like VERSION_GREATER_EQUAL is there only since cmake 3.7. However the minimum required cmake for LLVM is about three years old. @rnk is it the cmake policy the same as for the compiler, that is, keep compatibility for at least three years?

This revision is now accepted and ready to land.Jan 28 2019, 7:03 AM
This revision was automatically updated to reflect the committed changes.
rnk added a comment.Jan 28 2019, 1:10 PM

Thank you for fixing this! Looks like VERSION_GREATER_EQUAL is there only since cmake 3.7. However the minimum required cmake for LLVM is about three years old. @rnk is it the cmake policy the same as for the compiler, that is, keep compatibility for at least three years?

I think the answer is yes, we want about three years of cmake backwards compatibility. The goal of that is to make sure anyone can check out Linux in a random Linux distro from the last few years and they'll have a cmake version that works. Amusingly, developers on Windows and Mac tend to have more up-to-date developer tools, since they don't rely on a system package manager.