config BR2_PACKAGE_PAHO_MQTT_CPP
	bool "paho-mqtt-cpp"
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::future
	depends on BR2_INSTALL_LIBSTDCPP
	select BR2_PACKAGE_PAHO_MQTT_C
	help
	  MQTT client C++ library

	  https://eclipse.org/paho/clients/cpp/

comment "paho-mqtt-cpp needs a toolchain w/ threads, C++"
	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735

comment "paho-mqtt-cpp needs a toolchain not affected by GCC bug 64735"
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
