-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Fix cmake_minimum_require in libshm #58306
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
Fix cmake_minimum_require in libshm #58306
Conversation
💊 CI failures summary and remediationsAs of commit a20474d (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
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.
looks fine to me
@zhouzhuojie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@@ -1,6 +1,6 @@ | |||
project(libshm C CXX) | |||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |||
cmake_policy(VERSION 2.6) | |||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) |
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.
I dunno why we dont just bump to the minimum requirement of PyTorch main project. which is already 3.5?
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.
don't know for sure, but it's possible people can import pytorch's internal as libraries, and they may maintain their own cmake version. keeping the lowest viable version gives the max compatibility I guess
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.
Please update to 3.5
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, "shipit" was in queue before the comment, do you think we can bump up the min version for all cmake_minimum_required
within pytorch repo? I can followup with a PR to change it
2ba58f1
to
a20474d
Compare
Codecov Report
@@ Coverage Diff @@
## master #58306 +/- ##
=======================================
Coverage 76.47% 76.47%
=======================================
Files 1992 1992
Lines 199897 199897
=======================================
+ Hits 152866 152872 +6
+ Misses 47031 47025 -6 |
@@ -1,6 +1,6 @@ | |||
project(libshm C CXX) | |||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |||
cmake_policy(VERSION 2.6) | |||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) |
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.
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) | |
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) |
@@ -1,6 +1,6 @@ | |||
project(libshm C CXX) | |||
cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |||
cmake_policy(VERSION 2.6) | |||
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) |
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.
Please update to 3.5
@zhouzhuojie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@zhouzhuojie merged this pull request in eab59ba. |
Summary: Deprecation warning reported by cmake: ``` CMake Deprecation Warning at CMakeLists.txt (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument <min> value or use a ...<max> suffix to tell CMake that the project does not need compatibility with older versions. ``` This is the only place that requires bumping min version. There're two others but only in `third_party` folder. Pull Request resolved: pytorch#58306 Reviewed By: bdhirsh Differential Revision: D28446097 Pulled By: zhouzhuojie fbshipit-source-id: af5ef50e61bd57dc36089ebe62db70ba0081864c
Deprecation warning reported by cmake:
This is the only place that requires bumping min version. There're two others but only in
third_party
folder.