Skip to content

Commit 2ddb26a

Browse files
authored
Merge pull request #13429 from sotatek-dev/fix/13421
Fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24
2 parents 5a3ae1a + 1cd6f2a commit 2ddb26a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/EthPolicy.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ macro (eth_policy)
2020
# Allow selecting MSVC runtime library using CMAKE_MSVC_RUNTIME_LIBRARY.
2121
cmake_policy(SET CMP0091 NEW)
2222
endif()
23+
24+
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
25+
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
26+
cmake_policy(SET CMP0135 NEW)
27+
endif()
2328
endmacro()

0 commit comments

Comments
 (0)