-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[cmake] Bump minimum version to 3.4.3 #5113
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
Conversation
When I tried this once, IIRC,
|
Oh cool, thanks for the tip!
Do you still have that code somewhere? I'd be happy to resurrect your pull request, as opposed to using this one. :) |
@@ -8,12 +8,6 @@ if(POLICY CMP0054) | |||
cmake_policy(SET CMP0054 NEW) | |||
endif() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we remove all these cmake_policy
definition?
https://cmake.org/cmake/help/v3.4/manual/cmake-policies.7.html
The
cmake_minimum_required()
command does more than report an error if a too-old version of CMake is used to build a project. It also sets all policies introduced in that CMake version or earlier toNEW
behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, cool! Done! Thanks!
The What is happening in LLVM is that when you set I spoke with @vedantk about this last week. I'll circle back with him this morning, and we can get a fix into LLVM trunk and into swift-llvm this morning. |
Code is here master...rintaro:cmake-3.4.3, that's all I modified :) |
e8eef6a
to
6eab415
Compare
@swift-ci please clean test |
Build failed |
The Swift README states that the minimum CMake version required to build the Swift project is the same as LLVM's: 3.4.3. Bump the minimum version used by CMake to correspond to the README.
6eab415
to
5bd8aba
Compare
@swift-ci please clean test |
The builds passed! Can I get someone's stamp of approval on this, to bring our CMake into 3.4.3? 😍 Also, thanks to @rintaro -- this pull request is nearly exactly what he wrote in master...rintaro:cmake-3.4.3. 🙇 |
Whee! Thanks, @gottesmm! |
This pull request depends on #5112, which fixes warnings that are upgraded to errors in CMake 3.4.3. Please review that pull request before this one.
The Swift README states that the minimum CMake version required to build the Swift project is the same as LLVM's: 3.4.3. Bump the minimum version used by CMake to correspond to the README.
This addresses a suggestion left by @gottesmm and @llvm-beanz on #4999.