From 57a7f87705bb37ae262cf066828295d58d8fe0ee Mon Sep 17 00:00:00 2001 From: Furkan Davulcu Date: Wed, 19 Aug 2026 15:08:42 +0200 Subject: [PATCH] fix: set CMP0135 NEW where supported instead of DOWNLOAD_EXTRACT_TIMESTAMP Co-Authored-By: Claude Fable 5 --- kortex_api/CMakeLists.txt | 5 +++++ kortex_driver/CMakeLists.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/kortex_api/CMakeLists.txt b/kortex_api/CMakeLists.txt index 6a249eef..696b5190 100644 --- a/kortex_api/CMakeLists.txt +++ b/kortex_api/CMakeLists.txt @@ -3,6 +3,11 @@ include(FetchContent) project(kortex_api) +# Timestamp extracted archives at extraction time so a URL change forces a rebuild. +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + #Future: # convert API_URL components from CMAKE_SYSTEM variables. # The kinova artifactory server artifacts have slightly different expectations and they need some transformations diff --git a/kortex_driver/CMakeLists.txt b/kortex_driver/CMakeLists.txt index 53c7d5e0..6c8136ac 100644 --- a/kortex_driver/CMakeLists.txt +++ b/kortex_driver/CMakeLists.txt @@ -3,6 +3,11 @@ include(FetchContent) project(kortex_driver) +# Timestamp extracted archives at extraction time so a URL change forces a rebuild. +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + # Default to C++14 if(NOT CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 14)