Browse Source

Merge pull request #8716 from richardkchapman/memcached-name

HPCC-15635 - Memcached tests fail with undefined symbols

Reviewed-By: Chris Lo <christopher.lo@lexisnexis.com>
Reviewed-By: Michael Gardner <michael.gardner@lexisnexis.com>
Richard Chapman 9 years ago
parent
commit
dad2ff3b6c
2 changed files with 8 additions and 8 deletions
  1. 7 7
      plugins/memcached/CMakeLists.txt
  2. 1 1
      plugins/memcached/lib_memcached.ecllib

+ 7 - 7
plugins/memcached/CMakeLists.txt

@@ -14,7 +14,7 @@
 #    limitations under the License.
 #    limitations under the License.
 ################################################################################
 ################################################################################
 
 
-# Component: memcached
+# Component: memcachedplugin
 
 
 #####################################################
 #####################################################
 # Description:
 # Description:
@@ -22,7 +22,7 @@
 #    Cmake Input File for memcached
 #    Cmake Input File for memcached
 #####################################################
 #####################################################
 
 
-project( memcached )
+project( memcachedplugin )
 
 
 if (MEMCACHED)
 if (MEMCACHED)
     if(NOT DEFINED LIBMEMCACHED_MINVERSION)
     if(NOT DEFINED LIBMEMCACHED_MINVERSION)
@@ -50,26 +50,26 @@ if (MEMCACHED)
         #All lesser versions explicitly include <tr1/cinttypes> which does not.
         #All lesser versions explicitly include <tr1/cinttypes> which does not.
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
 
 
-        HPCC_ADD_LIBRARY(memcached SHARED ${SRCS})
+        HPCC_ADD_LIBRARY(memcachedplugin SHARED ${SRCS})
         if(${CMAKE_VERSION} VERSION_LESS "2.8.9")
         if(${CMAKE_VERSION} VERSION_LESS "2.8.9")
             message(WARNING "Cannot set NO_SONAME. shlibdeps will give warnings when package is installed")
             message(WARNING "Cannot set NO_SONAME. shlibdeps will give warnings when package is installed")
         elseif(NOT APPLE)
         elseif(NOT APPLE)
-            set_target_properties(memcached PROPERTIES NO_SONAME 1)
+            set_target_properties(memcachedplugin PROPERTIES NO_SONAME 1)
         endif()
         endif()
 
 
         #if we are using generated libmemcached, target appropriate dependencies
         #if we are using generated libmemcached, target appropriate dependencies
         if(MEMCACHED_USE_EXTERNAL_LIBRARY)
         if(MEMCACHED_USE_EXTERNAL_LIBRARY)
-            add_dependencies(memcached libmemcached libmemcachedutil)
+            add_dependencies(memcachedplugin libmemcached libmemcachedutil)
             install(CODE "set(ENV{LD_LIBRARY_PATH} \"\$ENV{LD_LIBRARY_PATH}:${PROJECT_BINARY_DIR}:${PROJECT_BINARY_DIR}/libmemcached-${LIBMEMCACHED_VERSION}/libmemcached/.libs\")")
             install(CODE "set(ENV{LD_LIBRARY_PATH} \"\$ENV{LD_LIBRARY_PATH}:${PROJECT_BINARY_DIR}:${PROJECT_BINARY_DIR}/libmemcached-${LIBMEMCACHED_VERSION}/libmemcached/.libs\")")
         endif()
         endif()
         target_link_libraries(
         target_link_libraries(
-            memcached
+            memcachedplugin
             eclrtl
             eclrtl
             jlib
             jlib
             ${LIBMEMCACHED_LIBRARIES})
             ${LIBMEMCACHED_LIBRARIES})
 
 
         install(
         install(
-            TARGETS memcached
+            TARGETS memcachedplugin
             DESTINATION plugins)
             DESTINATION plugins)
     endif()
     endif()
 endif()
 endif()

+ 1 - 1
plugins/memcached/lib_memcached.ecllib

@@ -15,7 +15,7 @@
     limitations under the License.
     limitations under the License.
 ############################################################################## */
 ############################################################################## */
 
 
-export memcached := SERVICE : plugin('memcached'), namespace('MemCachedPlugin')
+export memcached := SERVICE : plugin('memcachedplugin'), namespace('MemCachedPlugin')
   SetUnicode(CONST VARSTRING key, CONST UNICODE value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSet';
   SetUnicode(CONST VARSTRING key, CONST UNICODE value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSet';
   SetString(CONST VARSTRING key, CONST STRING value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSet';
   SetString(CONST VARSTRING key, CONST STRING value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSet';
   SetUtf8(CONST VARSTRING key, CONST UTF8 value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSetUtf8';
   SetUtf8(CONST VARSTRING key, CONST UTF8 value, CONST VARSTRING options, CONST VARSTRING partitionKey = '', UNSIGNED expire = 0) : cpp,action,context,entrypoint='MSetUtf8';