From a3d0bec889f7d962272d1f24f7f42eada01b04e1 Mon Sep 17 00:00:00 2001 From: gswatkins Date: Wed, 22 Feb 2023 09:39:20 -0500 Subject: [PATCH] Cleanup DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake 3.24 (#327) CMake 3.24 introduces a new policy for managing timestamps on extracted contents of downloaded archives. This change specifies the new behavior should be used for dependencies to eliminate the warning printed when the policy is not set. --- deps/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index ba569ec4c23..455405df719 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -23,6 +23,10 @@ project(BambuStudio-deps) cmake_minimum_required(VERSION 3.2) +if(POLICY CMP0135) # DOWNLOAD_EXTRACT_TIMESTAMP + cmake_policy(SET CMP0135 NEW) +endif() + include(ExternalProject) include(ProcessorCount)