Skip to content

Conversation

massonal
Copy link
Contributor

@massonal massonal commented Mar 9, 2023

CMake 3.24 introduced a change in behavior in ExternalProject_Add() regarding timestamps when extracting an archive.
As updating the code would break compatibility with older CMake versions, this commit instead tells newer CMake versions to behave like older ones, using a policy setting.

Note from the CMake docs:
The OLD behavior of a policy is deprecated by definition and may be removed in a future version of CMake.

-> so the code will have to be updated eventually, and compatibility be broken...

CMake 3.24 introduced a change in behavior in ExternalProject_Add()
regarding timestamps when extracting an archive.
As updating the code would break compatibility with older CMake versions,
this commit instead tells newer CMake versions to behave like older ones,
using a policy setting.

Note from the CMake docs:
The OLD behavior of a policy is deprecated by definition and may be removed in a future version of CMake.

-> so the code will have to be updated eventually, and compatibility be broken...
@fpistm fpistm added enhancement New feature or request fix 🩹 Bug fix labels Mar 9, 2023
@fpistm fpistm added this to the 2.5.0 milestone Mar 9, 2023
@fpistm fpistm merged commit 8cc3d3f into stm32duino:main Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fix 🩹 Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants