summaryrefslogtreecommitdiff
path: root/cmake/modules/UseWinLibs.cmake
blob: d06fa1d41e52cc75cd1054e053e0d86515262f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#

# Right now this is a more or less inelegant hack to get Windows
# builds going with MSVC

if( WIN32 )

	# We might need something like "if (CMAKE_COMPILER_ID MATCHES "MSVC")"
	# here to support other compilers on Windows.

	set( WIN_PSAPI_LIBRARY    psapi.lib )
	set( WIN_WSOCK32_LIBRARY  wsock32.lib )
	set( WIN_COMCTL32_LIBRARY comctl32.lib )
	set( WIN_VERSION_LIBRARY  version.lib )

	# Linking with setargv.obj enables "wildcard expansion" of command-line arguments
	set( WS_LINK_FLAGS "${WS_LINK_FLAGS} setargv.obj" )

endif()