754daf67de331de0f1d52256b43f2f09fb39fe43
[metze/wireshark/wip.git] / cmake / modules / UseWinLibs.cmake
1 #
2 # $Id$
3 #
4
5 # Right now this is a more or less inelegant hack to get Windows
6 # builds going with MSVC
7
8 if( WIN32 )
9
10         # We might need something like "if (CMAKE_COMPILER_ID MATCHES "MSVC")"
11         # here to support other compilers on Windows.
12
13         set( WIN_PSAPI_LIBRARY    psapi.lib )
14         set( WIN_WSOCK32_LIBRARY  wsock32.lib )
15
16         set( WIN_SETARGV_OBJECT   setargv.obj )
17
18         set( WS_LINK_FLAGS ${WS_LINK_FLAGS} "${WIN_SETARGV_OBJECT}" )
19
20 endif()