mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
Fix BUILD_SHARED_LIBS build option on Windows
This commit fixes the build error "unresolved external symbol GetModuleInformation" when the project is built on Windows with BUILD_SHARED_LIBS enabled. Gzdoom must be linked against "psapi". When BUILD_SHARED_LIBS is off (default), it gets linked because the discord-rpc library is linked against it and then statically linked into the project. The issue is fixed by making Gzdoom itself explicitly link against "psapi" too.
This commit is contained in:
parent
6f964e8d35
commit
ca0db39027
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ if( WIN32 )
|
|||
add_definitions( -D_WIN32 )
|
||||
|
||||
set( PROJECT_LIBRARIES
|
||||
psapi
|
||||
wsock32
|
||||
winmm
|
||||
dinput8
|
||||
|
|
Loading…
Reference in a new issue