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)