[wpiutil] Fix cmake build on windows when only MulticastServiceAnnouncer is used (#8454)

The pragma lib was only in the resolver. But if you had a statically
linked library that only used the announcer, the import wouldn't get
resolved.
This commit is contained in:
Thad House
2025-12-05 17:30:21 -08:00
committed by GitHub
parent 934f8d9c15
commit 0b44b8de4e

View File

@@ -22,6 +22,8 @@
#include "wpi/util/SmallVector.hpp"
#include "wpi/util/StringExtras.hpp"
#pragma comment(lib, "dnsapi")
using namespace wpi::net;
struct ImplBase {