Skip to content

Commit

Permalink
(#22735) mbedtls: add required Win32 system_libs
Browse files Browse the repository at this point in the history
  • Loading branch information
db4 authored Feb 27, 2024
1 parent 2f12a70 commit 3d3d57e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/mbedtls/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,13 @@ def package_info(self):

self.cpp_info.components["mbedcrypto"].set_property("cmake_target_name", "MbedTLS::mbedcrypto")
self.cpp_info.components["mbedcrypto"].libs = ["mbedcrypto"]
if self.settings.os == "Windows":
self.cpp_info.components["mbedcrypto"].system_libs = ["bcrypt"]

self.cpp_info.components["mbedx509"].set_property("cmake_target_name", "MbedTLS::mbedx509")
self.cpp_info.components["mbedx509"].libs = ["mbedx509"]
if self.settings.os == "Windows":
self.cpp_info.components["mbedx509"].system_libs = ["ws2_32"]
self.cpp_info.components["mbedx509"].requires = ["mbedcrypto"]

self.cpp_info.components["libembedtls"].set_property("cmake_target_name", "MbedTLS::mbedtls")
Expand Down

0 comments on commit 3d3d57e

Please sign in to comment.