From a39583f1ef2c435aa598fb5ce30c4571e1340e20 Mon Sep 17 00:00:00 2001 From: Agent Agrimar Date: Sun, 13 Sep 2020 08:01:53 -0400 Subject: [PATCH] client: cmake: add winmm.lib dependency This fixes a linker error when compiling for win32 with Goldsrc Support enabled. --- cl_dll/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cl_dll/CMakeLists.txt b/cl_dll/CMakeLists.txt index cde35d14..b7c98330 100644 --- a/cl_dll/CMakeLists.txt +++ b/cl_dll/CMakeLists.txt @@ -132,6 +132,9 @@ endif() if(WIN32) target_link_libraries( ${CLDLL_LIBRARY} user32.lib ) + if (GOLDSOURCE_SUPPORT) + target_link_libraries( ${CLDLL_LIBRARY} winmm.lib ) + endif() endif() set_target_properties (${CLDLL_LIBRARY} PROPERTIES