Skip to content

Commit 686a2f5

Browse files
authored
Merge pull request #117
Add Handling for CMake Policy CMP0135
2 parents 6d1c548 + 68cc21a commit 686a2f5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

share/c/cmake/DependencyUtil.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Raven Computing
1+
# Copyright (C) 2025 Raven Computing
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -192,6 +192,10 @@ function(dependency)
192192
${ARGN}
193193
)
194194

195+
if(POLICY CMP0135)
196+
cmake_policy(SET CMP0135 NEW)
197+
endif()
198+
195199
# The default URL to use for dependencies declared
196200
# with the DEPENDENCY_RESOURCE short form
197201
set(DEPENDENCY_BASE_URL_DEFAULT "https://github.com")

share/cpp/cmake/DependencyUtil.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2024 Raven Computing
1+
# Copyright (C) 2025 Raven Computing
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -192,6 +192,10 @@ function(dependency)
192192
${ARGN}
193193
)
194194

195+
if(POLICY CMP0135)
196+
cmake_policy(SET CMP0135 NEW)
197+
endif()
198+
195199
# The default URL to use for dependencies declared
196200
# with the DEPENDENCY_RESOURCE short form
197201
set(DEPENDENCY_BASE_URL_DEFAULT "https://github.com")

0 commit comments

Comments
 (0)