Fix compiling metaserver on WIN32
This commit is contained in:
parent
04e6ebcc12
commit
0c4ef0c400
1 changed files with 8 additions and 0 deletions
|
@ -1140,6 +1140,14 @@ if(SQLITE_FOUND)
|
|||
add_executable(metaserver ${metaserver_SRCS} ${metaserver_HDRS})
|
||||
target_link_libraries(metaserver ${SDL_LIBRARY} ${SQLITE_LIBRARIES})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(metaserver winmm ws2_32)
|
||||
endif()
|
||||
|
||||
if(WIN32 AND MINGW)
|
||||
target_link_libraries(metaserver dxguid)
|
||||
endif()
|
||||
|
||||
if(WIN32 AND MINGW AND ENABLE_STATIC)
|
||||
set_target_properties(metaserver PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue