diff --git a/recipes/paho-mqtt-cpp/all/conandata.yml b/recipes/paho-mqtt-cpp/all/conandata.yml index d21ec1d778e36..7085242ff02f6 100644 --- a/recipes/paho-mqtt-cpp/all/conandata.yml +++ b/recipes/paho-mqtt-cpp/all/conandata.yml @@ -1,4 +1,7 @@ sources: + "1.6.0": + url: "https://github.com/eclipse/paho.mqtt.cpp/archive/v1.6.0.tar.gz" + sha256: "73bdb408ae98812c5c2b7f00b2ae7c4fdb9798424abe5a7f7afb13c8fd462156" "1.5.3": url: "https://github.com/eclipse/paho.mqtt.cpp/archive/v1.5.3.tar.gz" sha256: "8aab7761bcb43e2d65dbf266c8623d345f7612411363a97aa66370fb9822d0b9" diff --git a/recipes/paho-mqtt-cpp/all/conanfile.py b/recipes/paho-mqtt-cpp/all/conanfile.py index 6f9eff257a0ef..ae0a05221eb4a 100644 --- a/recipes/paho-mqtt-cpp/all/conanfile.py +++ b/recipes/paho-mqtt-cpp/all/conanfile.py @@ -51,7 +51,10 @@ def layout(self): def requirements(self): # Headers are exposed https://github.com/conan-io/conan-center-index/pull/16760#issuecomment-1502420549 # Symbols are exposed "_MQTTProperties_free", referenced from: mqtt::connect_options::~connect_options() in test_package.cpp.o - self.requires("paho-mqtt-c/1.3.13", transitive_headers=True, transitive_libs=True) + if Version(self.version) >= "1.6.0": + self.requires("paho-mqtt-c/[>=1.3.14 <=1.3.16]", transitive_headers=True, transitive_libs=True) + else: + self.requires("paho-mqtt-c/1.3.13", transitive_headers=True, transitive_libs=True) def validate(self): if self.settings.compiler.get_safe("cppstd"): diff --git a/recipes/paho-mqtt-cpp/config.yml b/recipes/paho-mqtt-cpp/config.yml index bb02147a02ba5..bf447154277ef 100644 --- a/recipes/paho-mqtt-cpp/config.yml +++ b/recipes/paho-mqtt-cpp/config.yml @@ -1,4 +1,6 @@ versions: + "1.6.0": + folder: "all" "1.5.3": folder: "all" "1.4.1":