Commit 1581d754 authored by Marcus Hoffmann's avatar Marcus Hoffmann

Compile static ssl libraries with OPENSSL=1.

Explicitly enable OPENSSL=1 for the static ssl enabled libraries.
Otherwise a linker error is generated when using the libraries.
Signed-off-by: 's avatarMarcus Hoffmann <m.hoffmann@cartelsol.com>
parent 5571f9b1
...@@ -161,6 +161,11 @@ IF (PAHO_WITH_SSL) ...@@ -161,6 +161,11 @@ IF (PAHO_WITH_SSL)
TARGET_LINK_LIBRARIES(paho-mqtt3cs-static ${OPENSSL_LIBRARIES} ${LIBS_SYSTEM}) TARGET_LINK_LIBRARIES(paho-mqtt3cs-static ${OPENSSL_LIBRARIES} ${LIBS_SYSTEM})
TARGET_LINK_LIBRARIES(paho-mqtt3as-static ${OPENSSL_LIBRARIES} ${LIBS_SYSTEM}) TARGET_LINK_LIBRARIES(paho-mqtt3as-static ${OPENSSL_LIBRARIES} ${LIBS_SYSTEM})
SET_TARGET_PROPERTIES(
paho-mqtt3cs-static paho-mqtt3as-static PROPERTIES
VERSION ${CLIENT_VERSION}
SOVERSION ${PAHO_VERSION_MAJOR}
COMPILE_DEFINITIONS "OPENSSL=1")
INSTALL(TARGETS paho-mqtt3cs-static INSTALL(TARGETS paho-mqtt3cs-static
ARCHIVE DESTINATION lib ARCHIVE DESTINATION lib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment