Skip to content

Commit

Permalink
👨‍🌾 Fixes policy CMP0135 warning for CMake >= 3.24 (#1084) (#1096)
Browse files Browse the repository at this point in the history
* Fixes policy CMP0135 warning for CMake >= 3.24

Signed-off-by: Cristobal Arroyo <[email protected]>

* Sets CMP0135 policy behavior to NEW

Signed-off-by: Crola1702 <[email protected]>

* Sets CMP0135 policy behavior to NEW for sqlite3 vendor

Signed-off-by: Crola1702 <[email protected]>

Signed-off-by: Cristobal Arroyo <[email protected]>
Signed-off-by: Crola1702 <[email protected]>
Co-authored-by: Cristobal Arroyo <[email protected]>
(cherry picked from commit e179c79)

Co-authored-by: Cristóbal Arroyo <[email protected]>
  • Loading branch information
mergify[bot] and Crola1702 authored Sep 23, 2022
1 parent 9554905 commit b71944a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shared_queues_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sqlite3_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b71944a

Please sign in to comment.