Merge pull request #13429 from sotatek-dev/fix/13421

Fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24
This commit is contained in:
Mathias L. Baumann 2022-08-29 15:52:56 +02:00 committed by GitHub
commit 2ddb26ad96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()