mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
make server a static lib, run it in a separate thread
issues to solve: - dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. 13CPackForLobby, 20LobbyClientConnected, 20LobbyClientConnected. - error setting socket option: set_option: No buffer space available
This commit is contained in:
@@ -22,7 +22,11 @@ if(ANDROID) # android needs client/server to be libraries, not executables, so w
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_executable(vcmiserver ${server_SRCS} ${server_HEADERS})
|
||||
if(APPLE_IOS)
|
||||
add_library(vcmiserver STATIC ${server_SRCS} ${server_HEADERS})
|
||||
else()
|
||||
add_executable(vcmiserver ${server_SRCS} ${server_HEADERS})
|
||||
endif()
|
||||
|
||||
set(server_LIBS vcmi)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
|
||||
|
||||
Reference in New Issue
Block a user