Added interface for the static libs.
@@ -199,6 +199,13 @@ TARGET_INCLUDE_DIRECTORIES (upnp_static
PUBLIC $<BUILD_INTERFACE:${UPNP_BINARY_DIR}/upnp/inc/>
)
+IF (WIN32)
+ TARGET_LINK_LIBRARIES (upnp_static
+ INTERFACE ws2_32
+ INTERFACE iphlpapi
+ )
+ENDIF (WIN32)
+
SET_TARGET_PROPERTIES(upnp_static PROPERTIES
OUTPUT_NAME upnps
EXPORT_NAME UPNP::STATIC
