Skip to content

Fix: Set CMP0135 to NEW to silence FetchContent timestamp warnings - #6

Open
fdavulcu wants to merge 1 commit into
main-picknikfrom
fix/fetchcontent-timestamp-warning
Open

Fix: Set CMP0135 to NEW to silence FetchContent timestamp warnings#6
fdavulcu wants to merge 1 commit into
main-picknikfrom
fix/fetchcontent-timestamp-warning

Conversation

@fdavulcu

@fdavulcu fdavulcu commented Aug 19, 2026

Copy link
Copy Markdown

[written by AI]

CMake 3.24+ warns (CMP0135) on every FetchContent_Declare URL download that neither sets DOWNLOAD_EXTRACT_TIMESTAMP nor the policy, once per configure of kortex_api and kortex_driver. Set cmake_policy(SET CMP0135 NEW) behind an if(POLICY ...) guard in both packages: extracted files get extraction-time timestamps, so a changed download URL correctly triggers dependent rebuilds, and the guard keeps the declared cmake_minimum_required(VERSION 3.14) floor working on pre-3.24 CMake, where the policy (and the warning) do not exist.

DOWNLOAD_EXTRACT_TIMESTAMP was deliberately not used: the keyword only exists since CMake 3.24 (older FetchContent passes it through to ExternalProject_Add and breaks configure), and the true value the warning text suggests selects the legacy archive-timestamp behavior CMP0135 exists to replace, which can suppress rebuilds after an archive update.

…STAMP

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@fdavulcu
fdavulcu force-pushed the fix/fetchcontent-timestamp-warning branch from d6c5d95 to 57a7f87 Compare August 19, 2026 13:56
@fdavulcu fdavulcu changed the title Set DOWNLOAD_EXTRACT_TIMESTAMP on Kortex API downloads Fix: Set CMP0135 to NEW to silence FetchContent timestamp warnings Aug 19, 2026
@fdavulcu
fdavulcu marked this pull request as ready for review August 19, 2026 15:39
@fdavulcu
fdavulcu requested a review from a team August 19, 2026 15:40
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.

1 participant