Skip to content

Commit

Permalink
Fixes policy CMP0135 warning for CMake >= 3.24 (#36)
Browse files Browse the repository at this point in the history
* Fixes policy CMP0135 warning for CMake >= 3.24

Signed-off-by: Crola1702 <cristobal.arroyo@ekumenlabs.com>
  • Loading branch information
Crola1702 authored Sep 12, 2022
1 parent 5847266 commit 1d81843
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1d81843

Please sign in to comment.