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:
Chris Cowan 2023-05-13 21:39:55 -07:00 committed by Christoph Oelckers
parent 6f964e8d35
commit ca0db39027

View file

@ -56,6 +56,7 @@ if( WIN32 )
add_definitions( -D_WIN32 )
set( PROJECT_LIBRARIES
psapi
wsock32
winmm
dinput8