CMake: Build the relay server with the current aemu_postoffice

The server now needs enet, common.cpp and snapshot.cpp, and builds as
C++17. It takes enet's implementation from the client library.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 authored and Henrik Rydgård committed 2026-10-28 13:56:56 +01:00
1 parent 92b00eb28a
commit 22d009c7bb
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -90,6 +90,9 @@ set(aemu_postoffice_server_obj
aemu_postoffice/server_cpp/session.cpp
aemu_postoffice/server_cpp/semaphore.cpp
aemu_postoffice/server_cpp/log.cpp
aemu_postoffice/server_cpp/common.cpp
aemu_postoffice/server_cpp/enet.cpp
aemu_postoffice/server_cpp/snapshot.cpp
)
if(WIN32)
@@ -108,10 +111,6 @@ add_library(aemu_postoffice_server STATIC
${aemu_postoffice_server_obj}
)
set_target_properties(aemu_postoffice_server
PROPERTIES
CXX_STANDARD 20
)
set(FT_REQUIRE_ZLIB OFF CACHE BOOL "" FORCE)
set(FT_REQUIRE_BZIP2 OFF CACHE BOOL "" FORCE)