From 70cd29f53071b6ad28d2028ed5316aa7d750aedd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Mon, 18 Sep 2023 19:31:33 -0400 Subject: [PATCH] build(cmake): set `cmp0135` cmake policy to `new` Set the `CMP0135` CMake policy to `NEW`: the timestamps of the extracted files will reflect the timestamps at extraction. Setting the `download_extract_timestamp` to `true` (commit 5ca66d6) did not fix the warning. --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f8c9fd404..d060a5ad2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,8 @@ project(WebAssemblyInterface) set(CMAKE_CXX_STANDARD 17) -if(${CMAKE_VERSION} VERSION_LESS 3.24) - set(download_extract_timestamp_flag) -else() - set(download_extract_timestamp_flag DOWNLOAD_EXTRACT_TIMESTAMP TRUE) +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) endif() set(WebAssemblyInterface_LIBRARIES WebAssemblyInterface)