[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r2831: Link to ws2_32 if building with UPnP support on Windows, oth (vidalia/trunk/src/miniupnpc)
Author: edmanm
Date: 2008-07-02 22:38:02 -0400 (Wed, 02 Jul 2008)
New Revision: 2831
Modified:
vidalia/trunk/src/miniupnpc/CMakeLists.txt
Log:
Link to ws2_32 if building with UPnP support on Windows, otherwise we get
linker errors when building with CMake 2.6.
Modified: vidalia/trunk/src/miniupnpc/CMakeLists.txt
===================================================================
--- vidalia/trunk/src/miniupnpc/CMakeLists.txt 2008-07-03 00:45:56 UTC (rev 2830)
+++ vidalia/trunk/src/miniupnpc/CMakeLists.txt 2008-07-03 02:38:02 UTC (rev 2831)
@@ -1,5 +1,5 @@
##
-## $Id: $
+## $Id$
##
## This file is part of Vidalia, and is subject to the license terms in the
## LICENSE file, found in the top level directory of this distribution. If
@@ -27,4 +27,7 @@
endif(NOT WIN32)
add_library(miniupnpc STATIC ${miniupnpc_SRCS})
+if (WIN32)
+ target_link_libraries(miniupnpc ws2_32)
+endif(WIN32)