Browse Source

Build: Added user32.lib dependency to CMake

Also had to add ResetThink to cbase.h, as it was missing in deug.
half-secret
Jonathan Poncelet 5 years ago committed by Alibek Omarov
parent
commit
71afe6e204
  1. 4
      cl_dll/CMakeLists.txt
  2. 1
      dlls/cbase.h

4
cl_dll/CMakeLists.txt

@ -125,6 +125,10 @@ if (GOLDSOURCE_SUPPORT) @@ -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)

1
dlls/cbase.h

@ -363,6 +363,7 @@ public: @@ -363,6 +363,7 @@ public:
#define SetTouch( a ) TouchSet( static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a), #a )
#define SetUse( a ) UseSet( static_cast <void (CBaseEntity::*)( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )> (a), #a )
#define SetBlocked( a ) BlockedSet( static_cast <void (CBaseEntity::*)(CBaseEntity *)> (a), #a )
#define ResetThink() SetThink(NULL)
#else

Loading…
Cancel
Save