8000 cmake: set Python policy to avoid warning · libgit2/libgit2@9773432 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9773432

Browse files
committed
cmake: set Python policy to avoid warning
cmake warns us that we are using a deprecated python module; explicitly accept that deprecation until they remove it entirely.
1 parent 1692d30 commit 9773432

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/libgit2/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# tests: the unit and integration tests for libgit2
22

3+
if(NOT "${CMAKE_VERSION}" VERSION_LESS 3.27)
4+
cmake_policy(SET CMP0148 OLD)
5+
endif()
6+
37
set(Python_ADDITIONAL_VERSIONS 3 2.7)
48
find_package(PythonInterp)
59

tests/util/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# util: the unit tests for libgit2's utility library
22

3+
if(NOT "${CMAKE_VERSION}" VERSION_LESS 3.27)
4+
cmake_policy(SET CMP0148 OLD)
5+
endif()
6+
37
set(Python_ADDITIONAL_VERSIONS 3 2.7)
48
find_package(PythonInterp)
59

0 commit comments

Comments
 (0)
0