qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1462214 - /qpid/trunk/qpid/cpp/src/amqp.cmake
Date Thu, 28 Mar 2013 17:02:24 GMT
Author: gsim
Date: Thu Mar 28 17:02:23 2013
New Revision: 1462214

URL: http://svn.apache.org/r1462214
Log:
QPID-4669: have cmake build require proton 0.3 or greater

Modified:
    qpid/trunk/qpid/cpp/src/amqp.cmake

Modified: qpid/trunk/qpid/cpp/src/amqp.cmake
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/amqp.cmake?rev=1462214&r1=1462213&r2=1462214&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/amqp.cmake (original)
+++ qpid/trunk/qpid/cpp/src/amqp.cmake Thu Mar 28 17:02:23 2013
@@ -24,9 +24,14 @@ include(FindPkgConfig)
 pkg_check_modules(PROTON libqpid-proton)
 
 set (amqp_default ${amqp_force})
+set (required_version 0.3)
 if (PROTON_FOUND)
-    message(STATUS "Qpid proton found, amqp 1.0 support enabled")
-    set (amqp_default ON)
+    if (PROTON_VERSION LESS ${required_version})
+        message(STATUS "Qpid proton is too old, amqp 1.0 support not enabled")
+    else (PROTON_VERSION LESS ${required_version})
+        message(STATUS "Qpid proton found, amqp 1.0 support enabled")
+        set (amqp_default ON)
+    endif (PROTON_VERSION LESS ${required_version})
 else (PROTON_FOUND)
     message(STATUS "Qpid proton not found, amqp 1.0 support not enabled")
 endif (PROTON_FOUND)



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


Mime
View raw message