From 73e5b9405fb5ad77af3dd39cc3866cc3a95e54a5 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Thu, 13 Jul 2023 11:39:24 +0200 Subject: [PATCH] cmake: avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24 --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dda33be20..72a7c2e152 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,12 @@ if(POLICY CMP0115) cmake_policy(SET CMP0115 NEW) endif() +# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24: + +if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") + cmake_policy(SET CMP0135 NEW) +endif() + # Basic CMake configuration ################################################## set(CMAKE_CXX_STANDARD 14)