diff --git a/share/c/cmake/DependencyUtil.cmake b/share/c/cmake/DependencyUtil.cmake index 399e9f0..a2baa4f 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 cf2fdb6..e904299 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")