mirror of
https://github.com/eclipse/paho.mqtt.cpp.git
synced 2025-06-04 16:34:26 +08:00
17 lines
296 B
Bash
Executable File
17 lines
296 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Installs the matching version of Paho MQTT C library required by the C++ lib.
|
|
#
|
|
|
|
set -e
|
|
|
|
git clone https://github.com/eclipse/paho.mqtt.c.git
|
|
cd paho.mqtt.c
|
|
git checkout v1.2.1
|
|
cmake -Bbuild -H. -DPAHO_WITH_SSL=ON
|
|
sudo cmake --build build/ --target install
|
|
sudo ldconfig
|
|
exit 0
|
|
|
|
|