Skip to content

Commit 706065f

Browse files
authored
Set SECP256K1_STATIC for non-shared Windows builds (#26)
1 parent 5ee365d commit 706065f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

recipes/secp256k1/all/conanfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ def package_info(self):
4848
self.cpp_info.libs = ["secp256k1"]
4949
self.cpp_info.set_property("cmake_file_name", "secp256k1")
5050
self.cpp_info.set_property("cmake_target_name", "secp256k1::secp256k1")
51+
52+
if self.settings.os == "Windows" and not self.options.shared:
53+
self.cpp_info.defines.append("SECP256K1_STATIC")

0 commit comments

Comments
 (0)