Skip to content

Commit 2bc2848

Browse files
committed
- link with advapi32 & user32
Signed-off-by: SSE4 <[email protected]>
1 parent 2c81f5f commit 2bc2848

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

conanfile.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,11 @@ def package_info(self):
338338
if self.compiler == "Visual Studio":
339339
self.cpp_info.libs = ['libssld', 'libcryptod'] if self.settings.build_type == 'Debug' else \
340340
['libssl', 'libcrypto']
341-
self.cpp_info.libs.extend(["crypt32", "msi", "ws2_32"])
342341
elif self.compiler == "gcc" and self.settings.os == "Windows":
343-
self.cpp_info.libs = ["ssl", "crypto", "crypt32", "ws2_32"]
342+
self.cpp_info.libs = ["ssl", "crypto"]
344343
elif self.settings.os == "Linux":
345344
self.cpp_info.libs = ["ssl", "crypto", "dl", "pthread"]
346345
else:
347346
self.cpp_info.libs = ["ssl", "crypto"]
347+
if self.settings.os == "Windows":
348+
self.cpp_info.libs.extend(["crypt32", "msi", "ws2_32", "advapi32", "user32"])

0 commit comments

Comments
 (0)