From 5d9f59fb1acecde8a3d92d741e4c611478210b28 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Fri, 28 Oct 2011 23:52:50 -0700 Subject: [PATCH] Link pnAddrInfo against ws2_32 on Windows. --- Sources/Plasma/NucleusLib/pnAddrInfo/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/NucleusLib/pnAddrInfo/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnAddrInfo/CMakeLists.txt index 680ebac7..94d2e4ad 100644 --- a/Sources/Plasma/NucleusLib/pnAddrInfo/CMakeLists.txt +++ b/Sources/Plasma/NucleusLib/pnAddrInfo/CMakeLists.txt @@ -9,6 +9,10 @@ set(pnAddrInfo_HEADERS ) add_library(pnAddrInfo STATIC ${pnAddrInfo_SOURCES} ${pnAddrInfo_HEADERS}) +target_link_libraries(pnAddrInfo CoreLib) +if(WIN32) + target_link_libraries(pnAddrInfo ws2_32) +endif(WIN32) source_group("Source Files" FILES ${pnAddrInfo_SOURCES}) -source_group("Header Files" FILES ${pnAddrInfo_HEADERS}) \ No newline at end of file +source_group("Header Files" FILES ${pnAddrInfo_HEADERS})