10cd5bdf23
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 8aeafa1c2ec90b0e95ba5944266eda115457e10d Mon Sep 17 00:00:00 2001
|
|
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
Date: Mon, 15 Jun 2020 13:40:22 +0200
|
|
Subject: [PATCH] cmake/FindMahoMqttC.cmake: fix static build
|
|
|
|
Static libraries of paho-mqtt-c are not suffixed with -static since
|
|
version 1.3.2 and
|
|
https://github.com/eclipse/paho.mqtt.c/commit/8cc51c78b76a1eabd1df3124b0887ce8b01070ff
|
|
|
|
See: https://github.com/eclipse/paho.mqtt.c/pull/704
|
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
[Upstream status: https://github.com/eclipse/paho.mqtt.cpp/pull/275]
|
|
---
|
|
cmake/FindPahoMqttC.cmake | 4 ----
|
|
1 file changed, 4 deletions(-)
|
|
|
|
diff --git a/cmake/FindPahoMqttC.cmake b/cmake/FindPahoMqttC.cmake
|
|
index 53f15a3..0ec95bd 100644
|
|
--- a/cmake/FindPahoMqttC.cmake
|
|
+++ b/cmake/FindPahoMqttC.cmake
|
|
@@ -5,10 +5,6 @@ if(PAHO_WITH_SSL)
|
|
else()
|
|
set(_PAHO_MQTT_C_LIB_NAME paho-mqtt3a)
|
|
endif()
|
|
-# add suffix when using static Paho MQTT C library variant
|
|
-if(PAHO_BUILD_STATIC)
|
|
- set(_PAHO_MQTT_C_LIB_NAME ${_PAHO_MQTT_C_LIB_NAME}-static)
|
|
-endif()
|
|
|
|
find_library(PAHO_MQTT_C_LIBRARIES NAMES ${_PAHO_MQTT_C_LIB_NAME})
|
|
unset(_PAHO_MQTT_C_LIB_NAME)
|
|
--
|
|
2.26.2
|
|
|