Skip to content
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

Update version checks to avoid cmake issue #26243 #605

Merged
merged 1 commit into from
Dec 22, 2024

Conversation

Avus-c
Copy link
Contributor

@Avus-c Avus-c commented Sep 25, 2024

Fixes #603
Related to #570

This PR updates the CMake version check from 3.28.0 to 3.30.0 due to a known bug affecting versions up to 3.30.2. The issue has been resolved in CMake 3.30.3 (see CMake issue #26243).

Users may still encounter the issue described in #603 when using CMake versions 3.30.0 to 3.30.2.

Instead of using the non-deprecated function starting from 3.30.0, we could set it to 3.30.3, where the bug is fixed.
However, it will then trigger deprecation warnings.

Basically if someone uses CPM >=0.40.1, and cmake 3.30.0 - 3.30.2, they run into either deprecation errors or a cmake bug, no matter what we do.

cmake/CPM.cmake Outdated Show resolved Hide resolved
@Avus-c Avus-c force-pushed the fix/update_cmake_version_check branch from e009136 to 3d2b1dd Compare December 1, 2024 12:36
Copy link
Member

@TheLartians TheLartians left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising the issue and this fix! I agree that it's better to encounter a deprecated warning instead of the bug.

@TheLartians TheLartians merged commit c3807eb into cpm-cmake:master Dec 22, 2024
11 checks passed
@TheLartians
Copy link
Member

Released in v0.40.4 🎉

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.

GTest configuration fails as of CPM version 0.40.1
3 participants