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

fix: silence the warnings from ExternalProject_Add #1972

Merged
merged 1 commit into from
Mar 10, 2023

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 this to In progress in STM32 core based on ST HAL via automation 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
STM32 core based on ST HAL automation moved this from In progress to Done Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants