From b71944abb16a9acc24e002536e82a5265920dbab Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 17:52:41 -0700 Subject: [PATCH] :man_farmer: Fixes policy CMP0135 warning for CMake >= 3.24 (#1084) (#1096) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes policy CMP0135 warning for CMake >= 3.24 Signed-off-by: Cristobal Arroyo * Sets CMP0135 policy behavior to NEW Signed-off-by: Crola1702 * Sets CMP0135 policy behavior to NEW for sqlite3 vendor Signed-off-by: Crola1702 Signed-off-by: Cristobal Arroyo Signed-off-by: Crola1702 Co-authored-by: Cristobal Arroyo (cherry picked from commit e179c79b0d9acee0be58c676ae8b124fd42a3bc6) Co-authored-by: Cristóbal Arroyo <69475004+Crola1702@users.noreply.github.com> --- shared_queues_vendor/CMakeLists.txt | 5 +++++ sqlite3_vendor/CMakeLists.txt | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/shared_queues_vendor/CMakeLists.txt b/shared_queues_vendor/CMakeLists.txt index 0daf46722e..2c54eaba10 100644 --- a/shared_queues_vendor/CMakeLists.txt +++ b/shared_queues_vendor/CMakeLists.txt @@ -3,6 +3,11 @@ project(shared_queues_vendor) find_package(ament_cmake REQUIRED) +# Avoid DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake >= 3.24 +if (POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + include(ExternalProject) # Single producer single consumer queue by moodycamel - header only, don't build, install ExternalProject_Add(ext-singleproducerconsumer diff --git a/sqlite3_vendor/CMakeLists.txt b/sqlite3_vendor/CMakeLists.txt index b115233b96..e8af586e0b 100644 --- a/sqlite3_vendor/CMakeLists.txt +++ b/sqlite3_vendor/CMakeLists.txt @@ -3,6 +3,11 @@ project(sqlite3_vendor) find_package(ament_cmake REQUIRED) +# Avoid DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake >= 3.24 +if (POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() + option(FORCE_BUILD_VENDOR_PKG "Build SQLite3 from source, even if system-installed package is available" OFF)