We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112ee06 commit 69a533aCopy full SHA for 69a533a
2 files changed
CMakeLists.txt
@@ -1,4 +1,4 @@
1
-cmake_minimum_required(VERSION 3.14)
+cmake_minimum_required(VERSION 3.14...4.0)
2
3
# Use packagename_ROOT for FindPackage.
4
if(POLICY CMP0074)
src/CMakeLists.txt
@@ -79,6 +79,13 @@ if(BUILD_SHARED_LIBS)
79
set_target_properties(gamespy PROPERTIES ARCHIVE_OUTPUT_NAME gamespy_import WINDOWS_EXPORT_ALL_SYMBOLS ON)
80
endif()
81
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
+
89
if(GS_BUILD_TESTS)
90
add_executable(chattest chat/chatc/chatc.c)
91
target_link_libraries(chattest gamespy)
0 commit comments