You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2019/04/04 00:56:41 UTC

[qpid-proton] branch master updated: NO-JIRA: Oops - Fix CMake change to be backward compatible

This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git


The following commit(s) were added to refs/heads/master by this push:
     new e88a16d  NO-JIRA: Oops - Fix CMake change to be backward compatible
e88a16d is described below

commit e88a16d550a31f19e3c3fc8ad28f06acb7950b2a
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Wed Apr 3 20:47:03 2019 -0400

    NO-JIRA: Oops - Fix CMake change to be backward compatible
---
 CMakeLists.txt | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 133a69b..b9bbc8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -334,8 +334,12 @@ if(SWIG_FOUND)
   # Add any new swig bindings here - the directory name must be the same as the binding name
   list(APPEND BINDINGS python ruby)
 
-  cmake_policy(SET CMP0078 OLD)
-  cmake_policy(SET CMP0086 OLD)
+  if (POLICY CMP0078)
+    cmake_policy(SET CMP0078 OLD)
+  endif()
+  if (POLICY CMP0086)
+    cmake_policy(SET CMP0086 OLD)
+  endif()
   include(UseSWIG)
 
   # All swig modules should include ${PROTON_HEADERS} in SWIG_MODULE_<name>_EXTRA_DEPS


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org