File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ set(MQTT_SOURCES
3030 src/mqtt_socket.c
3131 )
3232
33+ # default to build shared library
34+ option (BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" ON )
3335add_library (wolfmqtt ${MQTT_SOURCES} )
3436
3537
@@ -41,6 +43,9 @@ if (WITH_WOLFSSL)
4143 "ENABLE_MQTT_TLS"
4244 )
4345elseif (WITH_WOLFSSL_TREE)
46+ set (WOLFSSL_EXAMPLES "no" CACHE STRING "" )
47+ set (WOLFSSL_CRYPT_TESTS "no" CACHE STRING "" )
48+
4449 add_subdirectory (${WITH_WOLFSSL_TREE} wolfssl )
4550 target_link_libraries (wolfmqtt PUBLIC wolfssl )
4651 target_compile_definitions (wolfmqtt PUBLIC
@@ -106,7 +111,7 @@ target_include_directories(wolfmqtt
106111 )
107112
108113
109- if (${ WOLFMQTT_EXAMPLES} )
114+ if (WOLFMQTT_EXAMPLES)
110115 add_library (mqtt_test_lib STATIC
111116 examples/mqttexample.c
112117 examples/mqttnet.c
You can’t perform that action at this time.
0 commit comments