File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.14 )
1+ cmake_minimum_required (VERSION 3.14...4.0 )
22
33# Use packagename_ROOT for FindPackage.
44if (POLICY CMP0074)
Original file line number Diff line number Diff line change 6363
6464// WIN32
6565#elif defined(_WIN32 )
66+ #ifndef WIN32_LEAN_AND_MEAN
6667#define WIN32_LEAN_AND_MEAN
68+ #endif
6769#include <windows.h>
6870#include <limits.h>
6971#include <time.h>
Original file line number Diff line number Diff line change @@ -79,6 +79,13 @@ if(BUILD_SHARED_LIBS)
7979 set_target_properties (gamespy PROPERTIES ARCHIVE_OUTPUT_NAME gamespy_import WINDOWS_EXPORT_ALL_SYMBOLS ON )
8080endif ()
8181
82+ # Handle including sockets library headers for consumers.
83+ if (WIN32 OR "${CMAKE_SYSTEM} " MATCHES "Windows" )
84+ if (GS_WINSOCK2)
85+ target_compile_definitions (gamespy INTERFACE GSI_WINSOCK2 )
86+ endif ()
87+ endif ()
88+
8289if (GS_BUILD_TESTS)
8390 add_executable (chattest chat/chatc/chatc.c )
8491 target_link_libraries (chattest gamespy )
You can’t perform that action at this time.
0 commit comments