From ce874f548c702095f5725e7761ea3b5056220afb Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Thu, 1 Jun 2023 16:46:09 +0800 Subject: [PATCH] Fix warning about DOWNLOAD_EXTRACT_TIMESTAMP on CMake 3.24. (#42) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f248b0..51c1ee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,10 @@ set(CMAKE_CXX_STANDARD 17) add_library(TekkonLib Tekkon/Tekkon.hh Tekkon/main.cc) +if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") + cmake_policy(SET CMP0135 NEW) +endif() + # Let CMake fetch Google Test for us. # https://gitee.com/mirrors/googletest/tree/main/googletest#incorporating-into-an-existing-cmake-project include(FetchContent)