Repository navigation
cmake: Port PR29904 from the master branch - #181
Conversation
|
LGTM. |
|
I've fixed a Windows-specific issue. Do you mind re-reviewing please? |
Port PR29904 (1 of 2).
Port PR29904 (2 of 2).
|
... and rebased to resolve a conflict. |
|
@hebasto When you add something like that to a PR like this, could you please provide some context? Why is ws2_32 needed now? |
Sure. Sorry for inappropriate succinctness.
The reason is the actual usage of WinSock in Lines 95 to 96 in d73245a Before this change, |
|
Elsewhere we have: if(MINGW)
target_link_libraries(bitcoin_util
PRIVATE
ws2_32
)Shouldn't we be using the same approach in both places? Does the above really only apply to mingw and not Windows generally? |
Unified `ws2_32` link approach.
Agree. A "fixup! .." commit has been added. |
This PR ports bitcoin#29904 after the recent sync/rebase PR.