-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
enforce CMake version consistently (currently 7 different ones) #1311
Comments
We require CMake 3.15.5 on all platforms for all of the native builds for consistency. Currently older versions may work on various parts of the tree, but we only support using CMake 3.15.5 or newer. |
Any concerns about updating all the cmake files (and the doc) to require this (blocking any "unsupported use") ? We can be confident that nobody is being successful with less than 3.14, since that is required by src\coreclr\CMakeLists.txt. Could there be some distro where nothing newer is available? If we don't know, then we should go ahead and update it: if we are mistaken, we will find out and it can be easily fixed. |
We should delete it from most of the files. It should be enough to have it in the top level files only. I have submitted #1312 that takes care of bulk of it. The rest can be dealt with in separate PR so that it is easier to review. |
BTW: |
It looks like these are redundant with >=3.14 3,1: cmake_policy(SET CMP0042 NEW)
C:\git\runtime\src\coreclr\configurecompiler.cmake
9,1: cmake_policy(SET CMP0083 NEW)
C:\git\runtime\src\coreclr\src\pal\src\CMakeLists.txt
61,1: cmake_policy(SET CMP0042 NEW)
C:\git\runtime\src\coreclr\tests\CMakeLists.txt
3,1: cmake_policy(SET CMP0042 NEW) |
This needs to stay:
|
Ouch @janvorli thanks for catching that, it seems odd since it also points out
When it is removed, do they silently change to NEW? ... |
- Set cmake_minimum_required in top level projects to 3.14.2 (the lowest version used by the CI currently) - Delete cmake_minimum_required from child projects - Leave the cmake_minimum_required alone in vendored projects (zlib) - Note CMake version in the docs Fixed #1311
The docs in this repo specify we require CMake 3.15.5 for Windows and macOS, and some unspecified version for Linux. Within our CMakeLists.txt's, we variously enforce 6 distinct minimum versions depending on what you build. There is also a set-cmake-path.ps1 that specifies 3.14, and some other ps1 files that do not specify it.
from CMakeLists.txt's:
@jkoritzinsky @ViktorHofer do we require the same version across all parts of the tree and host platforms? What version(s)?
Once this is clear we can fix documentation and checks.
The text was updated successfully, but these errors were encountered: