diff --git a/shared_memory/CMakeLists.txt b/shared_memory/CMakeLists.txt index b72573151..3a3e70de2 100644 --- a/shared_memory/CMakeLists.txt +++ b/shared_memory/CMakeLists.txt @@ -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)