Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] moquitto cmake link failure (wrap)

Hello!

There is (IMHO) something wrong with your CMakeLists.txt (src directory).
The line "set (MOSQ_LIBS ${OPENSSL_LIBRARIES})" will remove all previously set MOSQ_LIBS.

The wrap library is added (if option for that is set) to MOSQ_LIBS before and this line override the variable with openssl libraries only.

The line is still wrong in current mainline:

Patch for 1.3.5
===
diff -Naur a/mosquitto-1.3.5/src/CMakeLists.txt b/mosquitto-1.3.5/src/CMakeLists.txt
--- a/mosquitto-1.3.5/src/CMakeLists.txt        2014-11-05 16:44:32.045174775 +0100
+++ b/mosquitto-1.3.5/src/CMakeLists.txt        2014-11-05 16:52:48.322462157 +0100
@@ -73,7 +73,7 @@
 
 add_executable(mosquitto ${MOSQ_SRCS})
 
-set (MOSQ_LIBS ${OPENSSL_LIBRARIES})
+set (MOSQ_LIBS ${MOSQ_LIBS} ${OPENSSL_LIBRARIES})
 
 if (UNIX)
        if (APPLE)
===

Best regards,
Markus

Back to the top