[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mosquitto-dev] moquitto cmake link failure (wrap)
|
Hi Markus,
Thanks for this, I've pushed a fix to the 1.4 branch.
Regards,
Roger
On Wed, Nov 5, 2014 at 4:13 PM, Markus Rathgeb <maggu2810@xxxxxxxxx> wrote:
> 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:
> https://bitbucket.org/oojah/mosquitto/src/3c5f81fc32532d5a22937d9b4b1c707ae6e4d759/src/CMakeLists.txt?at=default#cl-76
>
> 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
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev