Browse Source

Fix compilation on windows.

aghl
Night Owl 6 years ago
parent
commit
ebedc4a781
  1. 6
      cl_dll/CMakeLists.txt
  2. 2
      cl_dll/aghl/agbase64.cpp

6
cl_dll/CMakeLists.txt

@ -94,7 +94,7 @@ set (CLDLL_SOURCES
message.cpp message.cpp
overview.cpp overview.cpp
parsemsg.cpp parsemsg.cpp
# aghl/agbase64.cpp aghl/agbase64.cpp
aghl/agcrc32.cpp aghl/agcrc32.cpp
aghl/agcrc32enforcer.cpp aghl/agcrc32enforcer.cpp
# aghl/agdownload.cpp # aghl/agdownload.cpp
@ -164,6 +164,10 @@ if (GOLDSOURCE_SUPPORT)
target_link_libraries( ${CLDLL_LIBRARY} ${CMAKE_DL_LIBS} ) target_link_libraries( ${CLDLL_LIBRARY} ${CMAKE_DL_LIBS} )
endif() endif()
if (WIN32)
target_link_libraries( ${CLDLL_LIBRARY} version.lib )
endif()
set_target_properties (${CLDLL_LIBRARY} PROPERTIES set_target_properties (${CLDLL_LIBRARY} PROPERTIES
POSITION_INDEPENDENT_CODE 1) POSITION_INDEPENDENT_CODE 1)

2
cl_dll/aghl/agbase64.cpp

@ -1,5 +1,6 @@
//++ BulliT //++ BulliT
#ifdef _WIN32
#include "agbase64.h" #include "agbase64.h"
#include <string.h> #include <string.h>
#include <assert.h> #include <assert.h>
@ -149,3 +150,4 @@ static char* s_szBadCodes[] =
OutputDebugString(szTest); OutputDebugString(szTest);
} }
*/ */
#endif // _WIN32

Loading…
Cancel
Save