From 68cc21a0ae09abf2708c79707c39b3701521d7f6 Mon Sep 17 00:00:00 2001 From: kilo52 Date: Mon, 13 Oct 2025 23:11:41 +0200 Subject: [PATCH] Added Handling for CMake Policy CMP0135. For details see: https://cmake.org/cmake/help/v3.24/policy/CMP0135.html#policy:CMP0135 Signed-off-by: kilo52 --- share/c/cmake/DependencyUtil.cmake | 6 +++++- share/cpp/cmake/DependencyUtil.cmake | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/share/c/cmake/DependencyUtil.cmake b/share/c/cmake/DependencyUtil.cmake index 399e9f06..a2baa4f4 100644 --- a/share/c/cmake/DependencyUtil.cmake +++ b/share/c/cmake/DependencyUtil.cmake @@ -1,4 +1,4 @@ -# Copyright (C) 2024 Raven Computing +# Copyright (C) 2025 Raven Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -192,6 +192,10 @@ function(dependency) ${ARGN} ) + if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) + endif() + # The default URL to use for dependencies declared # with the DEPENDENCY_RESOURCE short form set(DEPENDENCY_BASE_URL_DEFAULT "https://github.com") diff --git a/share/cpp/cmake/DependencyUtil.cmake b/share/cpp/cmake/DependencyUtil.cmake index cf2fdb6a..e9042995 100644 --- a/share/cpp/cmake/DependencyUtil.cmake +++ b/share/cpp/cmake/DependencyUtil.cmake @@ -1,4 +1,4 @@ -# Copyright (C) 2024 Raven Computing +# Copyright (C) 2025 Raven Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -192,6 +192,10 @@ function(dependency) ${ARGN} ) + if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) + endif() + # The default URL to use for dependencies declared # with the DEPENDENCY_RESOURCE short form set(DEPENDENCY_BASE_URL_DEFAULT "https://github.com")