Skip to content

Commit 699217b

Browse files
authored
Merge pull request #280 from JacobBarthelmeh/cmake
update for cmake after wolfssl added NAMESPACE
2 parents 48775d4 + 64bdfbd commit 699217b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ else()
150150
# For support with vcpkg
151151
find_package(wolfssl CONFIG)
152152
if (wolfssl_FOUND)
153-
target_link_libraries(wolftpm PUBLIC wolfssl)
153+
find_path(WOLFSSL_INCLUDE_DIR NAMES wolfssl/ssl.h)
154+
find_library(WOLFSSL_LIBRARY_PATH NAMES wolfssl)
155+
include_directories(${WOLFSSL_INCLUDE_DIR})
156+
target_link_libraries(wolftpm PUBLIC ${WOLFSSL_LIBRARY_PATH})
154157
else()
155158
list(APPEND WOLFTPM_DEFINITIONS "-DWOLFTPM2_NO_WOLFCRYPT")
156159
endif()

0 commit comments

Comments
 (0)