Skip to content

Commit

Permalink
Merge pull request wolfSSL#283 from JacobBarthelmeh/cmake
Browse files Browse the repository at this point in the history
improvement to cmake build
  • Loading branch information
dgarske authored Jul 24, 2023
2 parents 5e173bc + 914b689 commit a204aba
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,9 @@ else()
target_compile_options(wolftpm PUBLIC ${WOLFSSL_CFLAGS_OTHER})
else()
# For support with vcpkg
find_package(wolfssl CONFIG)
find_package(wolfssl CONFIG REQUIRED)
if (wolfssl_FOUND)
find_path(WOLFSSL_INCLUDE_DIR NAMES wolfssl/ssl.h)
find_library(WOLFSSL_LIBRARY_PATH NAMES wolfssl)
include_directories(${WOLFSSL_INCLUDE_DIR})
target_link_libraries(wolftpm PUBLIC ${WOLFSSL_LIBRARY_PATH})
target_link_libraries(wolftpm PRIVATE wolfssl::wolfssl)
else()
list(APPEND WOLFTPM_DEFINITIONS "-DWOLFTPM2_NO_WOLFCRYPT")
endif()
Expand Down

0 comments on commit a204aba

Please sign in to comment.