From 71afe6e2043929feb6fe66835d7ada932e0937da Mon Sep 17 00:00:00 2001 From: Jonathan Poncelet Date: Wed, 30 Oct 2019 13:36:05 +0000 Subject: [PATCH] Build: Added user32.lib dependency to CMake Also had to add ResetThink to cbase.h, as it was missing in deug. --- cl_dll/CMakeLists.txt | 4 ++++ dlls/cbase.h | 1 + 2 files changed, 5 insertions(+) diff --git a/cl_dll/CMakeLists.txt b/cl_dll/CMakeLists.txt index 1143eefe..c660f203 100644 --- a/cl_dll/CMakeLists.txt +++ b/cl_dll/CMakeLists.txt @@ -125,6 +125,10 @@ if (GOLDSOURCE_SUPPORT) target_link_libraries( ${CLDLL_LIBRARY} ${CMAKE_DL_LIBS} ) endif() +if(WIN32) + target_link_libraries( ${CLDLL_LIBRARY} user32.lib ) +endif() + set_target_properties (${CLDLL_LIBRARY} PROPERTIES POSITION_INDEPENDENT_CODE 1) diff --git a/dlls/cbase.h b/dlls/cbase.h index e200d7b0..a15638ab 100644 --- a/dlls/cbase.h +++ b/dlls/cbase.h @@ -363,6 +363,7 @@ public: #define SetTouch( a ) TouchSet( static_cast (a), #a ) #define SetUse( a ) UseSet( static_cast (a), #a ) #define SetBlocked( a ) BlockedSet( static_cast (a), #a ) +#define ResetThink() SetThink(NULL) #else