Skip to content

Commit

Permalink
CMAKE: look for pthreads when importing wolfSSL if required
Browse files Browse the repository at this point in the history
All required dependencies of a package must also be found in the
package configuration file. Consumers of wolfSSL can't know
if it was built with or without threads support. This change
adds find_package(Threads) lookup in the file used for
find_package(wolfssl) if wolfSSL was built with threads support.
  • Loading branch information
redbaron committed Nov 7, 2024
1 parent c577ad7 commit 0319eb0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
if (@HAVE_PTHREAD@)
find_dependency(Threads)
endif()


include ( "${CMAKE_CURRENT_LIST_DIR}/wolfssl-targets.cmake" )

0 comments on commit 0319eb0

Please sign in to comment.