mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 09:38:21 +00:00
Fixed linking
This commit is contained in:
@@ -28,10 +28,12 @@ TARGET_LINK_LIBRARIES(shared_memory common ${PERF_LIBS} debug ${MySQL_LIBRARY_DE
|
|||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
SET_TARGET_PROPERTIES(shared_memory PROPERTIES LINK_FLAGS_RELEASE "/OPT:REF /OPT:ICF")
|
SET_TARGET_PROPERTIES(shared_memory PROPERTIES LINK_FLAGS_RELEASE "/OPT:REF /OPT:ICF")
|
||||||
TARGET_LINK_LIBRARIES(shared_memory "Ws2_32.lib")
|
TARGET_LINK_LIBRARIES(shared_memory "Ws2_32.lib")
|
||||||
|
TARGET_LINK_LIBRARIES(shared_memory "rpcrt4")
|
||||||
ENDIF(MSVC)
|
ENDIF(MSVC)
|
||||||
|
|
||||||
IF(MINGW)
|
IF(MINGW)
|
||||||
TARGET_LINK_LIBRARIES(shared_memory "WS2_32")
|
TARGET_LINK_LIBRARIES(shared_memory "WS2_32")
|
||||||
|
TARGET_LINK_LIBRARIES(shared_memory "rpcrt4")
|
||||||
ENDIF(MINGW)
|
ENDIF(MINGW)
|
||||||
|
|
||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
@@ -42,6 +44,7 @@ IF(UNIX)
|
|||||||
TARGET_LINK_LIBRARIES(shared_memory "rt")
|
TARGET_LINK_LIBRARIES(shared_memory "rt")
|
||||||
ENDIF(NOT DARWIN)
|
ENDIF(NOT DARWIN)
|
||||||
TARGET_LINK_LIBRARIES(shared_memory "pthread")
|
TARGET_LINK_LIBRARIES(shared_memory "pthread")
|
||||||
|
TARGET_LINK_LIBRARIES(shared_memory "uuid")
|
||||||
ADD_DEFINITIONS(-fPIC)
|
ADD_DEFINITIONS(-fPIC)
|
||||||
ENDIF(UNIX)
|
ENDIF(UNIX)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user