Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes policy CMP0135 warning for CMake >= 3.24 (backport #898) #936

Merged
merged 1 commit into from
Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rviz_assimp_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ option(FORCE_BUILD_VENDOR_PKG

find_package(ament_cmake REQUIRED)

# Avoid DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake >= 3.24
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

macro(build_assimp)
set(extra_cmake_args)
if(DEFINED CMAKE_BUILD_TYPE)
Expand Down
5 changes: 5 additions & 0 deletions rviz_ogre_vendor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ find_package(ament_cmake REQUIRED)

set(PACKAGE_VERSION "1.0.0")

# Avoid DOWNLOAD_EXTRACT_TIMESTAMP warning for CMake >= 3.24
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()

if(WIN32)
set(BUILDING_FREETYPE_LOCALLY ON)
set(BUILDING_ZLIB_LOCALLY ON)
Expand Down