Debian Codegraph @

debian/patches/0001-PROTON-2583-Fix-build-to-avoid-warnings-for-recent-C.patch

raw
1 From 891921dfaab358f16e0f51047010e38b81564f50 Mon Sep 17 00:00:00 2001
2 From: Andrew Stitcher <[email protected]>
3 Date: Tue, 18 Jan 2022 10:47:09 -0500
4 Subject: PROTON-2583: Fix build to avoid warnings for recent CMake
5
6 It's not exactly clear but this may need cmake > 3.13
7 ---
8 CMakeLists.txt | 4 ++--
9 python/CMakeLists.txt | 2 +-
10 2 files changed, 3 insertions(+), 3 deletions(-)
11
12 diff --git a/CMakeLists.txt b/CMakeLists.txt
13 index 78bb935c..cc5244b6 100644
14 --- a/CMakeLists.txt
15 +++ b/CMakeLists.txt
16 @@ -371,10 +371,10 @@ if(SWIG_FOUND)
17 list(APPEND BINDINGS python ruby)
18
19 if (POLICY CMP0078)
20 - cmake_policy(SET CMP0078 OLD)
21 + cmake_policy(SET CMP0078 NEW)
22 endif()
23 if (POLICY CMP0086)
24 - cmake_policy(SET CMP0086 OLD)
25 + cmake_policy(SET CMP0086 NEW)
26 endif()
27 include(UseSWIG)
28
29 diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
30 index 06caf61a..fd527d81 100644
31 --- a/python/CMakeLists.txt
32 +++ b/python/CMakeLists.txt
33 @@ -215,7 +215,7 @@ endif ()
34 # python test: python/tests/proton-test
35 set (py_src "${CMAKE_CURRENT_SOURCE_DIR}")
36 set (py_bin "${CMAKE_CURRENT_BINARY_DIR}")
37 -set (py_dll "$<TARGET_FILE_DIR:_cproton>")
38 +set (py_dll "$<TARGET_FILE_DIR:cproton>")
39 set (py_bld "$<TARGET_FILE_DIR:qpid-proton-core>") # For windows
40 set (py_tests "${py_src}/tests")
41 set (tests_py "${py_src}/../tests/py")
42 --
43 2.30.2
44