summaryrefslogtreecommitdiff
path: root/cpp/bindings
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-11-06 15:51:07 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-11-06 15:51:07 +0000
commit415813d284ce9ca3f22443ed9f7b054a9cf0c302 (patch)
tree84cc9cbf47aeb5ce50fd705993719fd6e30bf709 /cpp/bindings
parent2fc14993a7d78002bb6992f6837118b16edf4c83 (diff)
downloadqpid-python-415813d284ce9ca3f22443ed9f7b054a9cf0c302.tar.gz
QPID-4417: Add minimum Swig version check to autotools and Cmake
Any version of Swig < 1.3.32 results in errors in the Perl language bindings. This change forces both build systems to require at least version 1.3.32 of Swig in order to build those language bindings. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1406195 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings')
-rw-r--r--cpp/bindings/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/bindings/CMakeLists.txt b/cpp/bindings/CMakeLists.txt
index 356b0d73a3..7f55377685 100644
--- a/cpp/bindings/CMakeLists.txt
+++ b/cpp/bindings/CMakeLists.txt
@@ -24,7 +24,14 @@ include(FindRuby)
include(FindPythonLibs)
include(FindPerlLibs)
+set (SWIG_MINIMUM_VERSION "1.3.32")
+
if (SWIG_FOUND)
+
+ if (${SWIG_VERSION} VERSION_LESS ${SWIG_MINIMUM_VERSION})
+ message(FATAL_ERROR "Swig >= ${SWIG_MINIMUM_VERSION} required.")
+ endif()
+
set(CMAKE_SWIG_FLAGS "-w361,362,401,467,503")
if (PYTHONLIBS_FOUND)