From 1cd6f2a486154274a7db4bf57420017c804dfa5d Mon Sep 17 00:00:00 2001 From: Thanh Tran Date: Wed, 24 Aug 2022 15:18:27 +0700 Subject: [PATCH] Fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24 --- cmake/EthPolicy.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/EthPolicy.cmake b/cmake/EthPolicy.cmake index cc404e794..f571a09ce 100644 --- a/cmake/EthPolicy.cmake +++ b/cmake/EthPolicy.cmake @@ -20,4 +20,9 @@ macro (eth_policy) # Allow selecting MSVC runtime library using CMAKE_MSVC_RUNTIME_LIBRARY. cmake_policy(SET CMP0091 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() endmacro()