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.
This commit is contained in:
gswatkins 2023-02-22 09:39:20 -05:00 committed by GitHub
parent 27271a69f6
commit 9a117afbe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
deps/CMakeLists.txt vendored
View file

@ -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)