From 29a9208364fc245432beb0846f014f47fd560fee Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 17 Sep 2022 03:26:47 +0800 Subject: Fix cmake 3.24 depreciated feature warning. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 41abd0d..22b29e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,11 @@ set(CMAKE_CXX_FLAGS_RELEASE "${common_compiler_args} -O2") set(CMAKE_VERBOSE_MAKEFILE on) +# 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() + link_libraries(pthread) link_libraries(atomic) -- cgit v1.2.3