Skip to content

Conversation

@thetic
Copy link
Contributor

@thetic thetic commented Dec 28, 2024

Most recent CMake started complaining about the pending end of 3.8 support.

CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

We can retain support by adding a max version. This will not prevent use with newer versions, but indicates forward compatibility.1

Footnotes

  1. https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html

Most recent CMake started complaining about the pending end of 3.8
support.

> ```
> CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required):
>   Compatibility with CMake < 3.10 will be removed from a future version of
>   CMake.
>
>   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
>   to tell CMake that the project requires at least <min> but has been updated
>   to work with policies introduced by <max> or earlier.
> ```

We can retain support by adding a max version. This will no
prevent use with newer versions, but indicates forward
compatibility.[^1]

[^1]: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
@offa
Copy link
Contributor

offa commented Dec 29, 2024

Why not use CMake > 3.8? 3.8 was released 2018 and there's barely a reason to stay on such an old version.

@thetic
Copy link
Contributor Author

thetic commented Dec 29, 2024

Why not use CMake > 3.8? 3.8 was released 2018 and there's barely a reason to stay on such an old version.

I considered that, but we're not using anything that requires anything newer, and this is easy enough to fix without breaking compatibility. I agree, however, that we should not hesitate to bump the minimum version if we ever want a newer CMake behavior.

@basvodde basvodde merged commit f09fe06 into cpputest:master Dec 30, 2024
35 of 65 checks passed
@thetic thetic deleted the undeprecate branch December 30, 2024 16:29
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.

3 participants