Skip to content

Commit

Permalink
Merge pull request #343 from JacobBarthelmeh/vcpkg
Browse files Browse the repository at this point in the history
update for cmake after wolfssl added NAMESPACE
  • Loading branch information
embhorn authored Jul 19, 2023
2 parents 1f0a599 + 6c73e77 commit 43a9cc3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 43a9cc3

Please sign in to comment.