8000 Fix Github Action errors by FreyJo · Pull Request #1487 · acados/acados · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Github Action errors #1487

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 acco 8000 unt

Merged
merged 14 commits into from
Apr 3, 2025
Merged

Fix Github Action errors #1487

merged 14 commits into from
Apr 3, 2025

Conversation

FreyJo
Copy link
Member
@FreyJo FreyJo commented Apr 3, 2025

Our CI workflows were failing, since the ubuntu automatically installs CMake 4.0.
This version throws an error when cmake_minimum_required(VERSION 2.8.11) is set.
It can be mitigated by compiling with -DCMAKE_POLICY_VERSION_MINIMUM=3.5, but already prints a deprecation warning even then, saying we should directly go to 3.10.
I am not sure if people actually use very old cmake versions, but updating the version requirement would also be an option at some point.

An alternative fix is in 1e2640e which changes
cmake_minimum_required(VERSION 2.8.11) to cmake_minimum_required(VERSION 2.8.11...4.0) for the relevant submodules.
However, it is not clear to me what the effects are. In particular, I think this would cause issues with cmake > 4.0.
The documentation did not fully clarify directly:
https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html

@sandmaennchen sandmaennchen merged commit 1ae06bd into acados:main Apr 3, 2025
14 checks passed
@sandmaennchen sandmaennchen deleted the cmake_action_fix branch April 3, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0