From 05df5c3e744958fd6281a87805f96d9aeaa752c4 Mon Sep 17 00:00:00 2001 From: KimLS Date: Thu, 5 Feb 2015 23:36:35 -0800 Subject: [PATCH] Fixed linking --- shared_memory/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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)