Fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24

This commit is contained in:
Thanh Tran 2022-08-24 15:18:27 +07:00
parent a3de6cd60e
commit 1cd6f2a486

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