This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push:
new e47b0805a PROTON-2583: Fix build to avoid warnings for recent CMake
e47b0805a is described below
commit e47b0805abe5bd25a4f979142d620f498b296407
Author: Andrew Stitcher <[email protected]>
AuthorDate: Tue Jan 18 10:47:09 2022 -0500
PROTON-2583: Fix build to avoid warnings for recent CMake
It's not exactly clear but this may need cmake > 3.13
---
CMakeLists.txt | 4 ++--
python/CMakeLists.txt | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a0ca897bf..9c075dad9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -371,10 +371,10 @@ if(SWIG_FOUND)
list(APPEND BINDINGS python ruby)
if (POLICY CMP0078)
- cmake_policy(SET CMP0078 OLD)
+ cmake_policy(SET CMP0078 NEW)
endif()
if (POLICY CMP0086)
- cmake_policy(SET CMP0086 OLD)
+ cmake_policy(SET CMP0086 NEW)
endif()
include(UseSWIG)
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 698ddbe11..cb4649bb4 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -203,7 +203,7 @@ endif ()
# python test: python/tests/proton-test
set (py_src "${CMAKE_CURRENT_SOURCE_DIR}")
set (py_bin "${CMAKE_CURRENT_BINARY_DIR}")
-set (py_dll "$<TARGET_FILE_DIR:_cproton>")
+set (py_dll "$<TARGET_FILE_DIR:cproton>")
set (py_bld "$<TARGET_FILE_DIR:qpid-proton-core>") # For windows
set (py_tests "${py_src}/tests")
set (tests_py "${py_src}/../tests/py")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]