Skip to content

Commit

Permalink
build(cmake): set cmp0135 cmake policy to new
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jhlegarreta committed Sep 18, 2023
1 parent 94096c5 commit 70cd29f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70cd29f

Please sign in to comment.