We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b497d commit 6e87712Copy full SHA for 6e87712
cmake/FindPahoMqttC.cmake
@@ -5,10 +5,13 @@ if(PAHO_WITH_SSL)
5
else()
6
set(_PAHO_MQTT_C_LIB_NAME paho-mqtt3a)
7
endif()
8
-# add suffix when using static Paho MQTT C library variant
9
-#if(PAHO_BUILD_STATIC)
10
-# set(_PAHO_MQTT_C_LIB_NAME ${_PAHO_MQTT_C_LIB_NAME}-static)
11
-#endif()
+
+# add suffix when using static Paho MQTT C library variant on Windows
+if(WIN32)
+ if(PAHO_BUILD_STATIC)
12
+ set(_PAHO_MQTT_C_LIB_NAME ${_PAHO_MQTT_C_LIB_NAME}-static)
13
+ endif()
14
+endif()
15
16
find_library(PAHO_MQTT_C_LIBRARIES NAMES ${_PAHO_MQTT_C_LIB_NAME})
17
unset(_PAHO_MQTT_C_LIB_NAME)
0 commit comments