From 1d818435e8e6258fa00fe87c5eb1c477955d249f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3bal=20Arroyo?= <69475004+Crola1702@users.noreply.github.com> Date: Mon, 12 Sep 2022 09:39:39 -0500 Subject: [PATCH] Fixes policy CMP0135 warning for CMake >= 3.24 (#36) * Fixes policy CMP0135 warning for CMake >= 3.24 Signed-off-by: Crola1702 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e56cc43..9fa3780 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,11 @@ option(FORCE_BUILD_VENDOR_PKG "Build console_bridge from source, even if system-installed package is available" OFF) +# Avoid DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake >= 3.24 +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + if(NOT FORCE_BUILD_VENDOR_PKG) find_package(console_bridge QUIET) endif()