Fixed linking

This commit is contained in:
KimLS 2015-02-05 23:36:35 -08:00
parent ac1a3d0743
commit 05df5c3e74

View File

@ -28,10 +28,12 @@ TARGET_LINK_LIBRARIES(shared_memory common ${PERF_LIBS} debug ${MySQL_LIBRARY_DE
IF(MSVC)
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 "rpcrt4")
ENDIF(MSVC)
IF(MINGW)
TARGET_LINK_LIBRARIES(shared_memory "WS2_32")
TARGET_LINK_LIBRARIES(shared_memory "rpcrt4")
ENDIF(MINGW)
IF(UNIX)
@ -42,6 +44,7 @@ IF(UNIX)
TARGET_LINK_LIBRARIES(shared_memory "rt")
ENDIF(NOT DARWIN)
TARGET_LINK_LIBRARIES(shared_memory "pthread")
TARGET_LINK_LIBRARIES(shared_memory "uuid")
ADD_DEFINITIONS(-fPIC)
ENDIF(UNIX)