Skip to content

Commit

Permalink
Merge pull request #735 from pabuhler/cmake-wolfssl
Browse files Browse the repository at this point in the history
make it easier to use local build of wolfssl
  • Loading branch information
pabuhler authored Dec 11, 2024
2 parents 826a67b + 201787e commit 74a68ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/FindwolfSSL.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
find_path(WOLFSSL_INCLUDE_DIR wolfssl/ssl.h)
if (WOLFSSL_ROOT_DIR)
set(_WOLFSSL_ROOT_HINTS_AND_PATHS HINTS ${WOLFSSL_ROOT_DIR} PATH_SUFFIXES include lib NO_DEFAULT_PATH)
endif()

find_path(WOLFSSL_INCLUDE_DIR wolfssl/ssl.h ${_WOLFSSL_ROOT_HINTS_AND_PATHS})

find_library(WOLFSSL_LIBRARY wolfssl)
find_library(WOLFSSL_LIBRARY wolfssl ${_WOLFSSL_ROOT_HINTS_AND_PATHS})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(wolfSSL DEFAULT_MSG
Expand Down

0 comments on commit 74a68ee

Please sign in to comment.