cmake: avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24

This commit is contained in:
raiden00pl 2023-07-13 11:39:24 +02:00 committed by Petro Karashchenko
parent 73a06a4975
commit 73e5b9405f

View File

@ -40,6 +40,12 @@ if(POLICY CMP0115)
cmake_policy(SET CMP0115 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()
# Basic CMake configuration ##################################################
set(CMAKE_CXX_STANDARD 14)