-
Notifications
You must be signed in to change notification settings - Fork 215
Newer CMake is going to drop <2.8.12 #217
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
So update to 2.8.12.2 (in Ubuntu 14.04) CentOS 7 has a way to install CMake3. This avoids the warning in newer CMakes: flatcc/CMakeLists.txt:5 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.
|
Thanks, but: |
|
Thanks for the quick response. Waiting for next release is not a problem since it is just a warning now. I think #169 may not fix this warning since newer CMake just wont support 2.8 so we have to decide if we want to support old cmake or new cmake in due course :D |
|
Relying on ancient versions of CMake such as cmake_minimum_required(VERSION 3.13.5)
project(test_project)
set(FLATCC_TEST OFF) # This will be ignored since flatcc currently uses cmake_minimum_required(VERSION 2.8)
add_subdirectory(flatcc)Typically, CMake would then return the following warning message: If $ cmake .. -D FLATCC_TEST=OFFWhich shifts responsibility to end users (who might be or not maintainers of the higher-level |
|
Historically, certain important Ubuntu versions did not trivially work with more recent CMake. EDIT: GH Actions do not support MSVC 2010 without special installation during build. I'm ready to move forward to something along MSVC 2013 or so. |
I had a look at #171, but IMHO this PR introduces too many several architectural changes that affect many aspects of this project i.e., not only build-related stuff, but also integration with Github Actions, cross-compilation and introduction of new APIs such as I would rather suggest to split the effort in #171 into smaller, independent PRs that make it easier for others to review. Therefore, as a first step, I plan to create a PR that identifies obsolete and deprecated CMake constructs within the project and fixes them with modern alternatives. |
|
I tend to agree, but I'd rather have GH Actions working first because the Travis build stopped working after they made a change. So there is no way to verify complex changes across several operating systems and compiler versions as it is. |
|
@midokura-xavi92 don't let this stop you if you have something of interest. This is just the order of events I think makes the most sense. |
|
@mikkelfj thank you very much for your support. I will then provide a few suggestions whenever possible. |
a8e7a8a to
d7f50b2
Compare
|
This was merged into PR #250 so closing this one. |
|
Sorry for not bringing attention to this topic earlier - priorities were shifted to other projects, so no time could be dedicated to this suggestion, unfortunately, and I do not know when I could take back on it. |
|
Fair enough, thanks for the update. |
So update to 2.8.12.2 (in Ubuntu 14.04)
CentOS 7 has a way to install CMake3.
This avoids the warning in newer CMakes:
flatcc/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.