From 6c73e772d95abf86cf215ba82fe9e84b4d8225f6 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 18 Jul 2023 12:41:20 -0700 Subject: [PATCH] update for cmake after wolfssl added NAMESPACE --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32f03325f..d81318f9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,10 +67,13 @@ else() # For support with vcpkg find_package(wolfssl CONFIG) if (wolfssl_FOUND) + find_path(WOLFSSL_INCLUDE_DIR NAMES wolfssl/ssl.h) + find_library(WOLFSSL_LIBRARY_PATH NAMES wolfssl) target_compile_definitions(wolfmqtt PUBLIC "ENABLE_MQTT_TLS" ) - target_link_libraries(wolfmqtt PUBLIC wolfssl) + include_directories(${WOLFSSL_INCLUDE_DIR}) + target_link_libraries(wolfmqtt PUBLIC ${WOLFSSL_LIBRARY_PATH}) endif() endif() endif()