Skip to content

Commit

Permalink
cmake: fix memaslap configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Feb 28, 2023
1 parent 4a434c5 commit cc10890
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contrib/bin/memaslap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ if(ENABLE_MEMASLAP AND CMAKE_USE_PTHREADS_INIT)
check_dependency(LIBEVENT event)

if(HAVE_LIBEVENT AND HAVE_ATOMICS)
add_executable(memaslap
add_executable(aslap
ms_main.c
ms_conn.c
ms_setting.c
ms_sigsegv.c
ms_stats.c
ms_task.c
ms_thread.c)
target_include_directories(memaslap PRIVATE
target_include_directories(aslap PRIVATE
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_BINARY_DIR})
target_link_libraries(memaslap PRIVATE libmemcached Threads::Threads ${LIBEVENT} m)
set_property(TARGET memaslap PROPERTY C_STANDARD 11)
target_link_libraries(aslap PRIVATE libmemcached Threads::Threads ${LIBEVENT} m)
set_property(TARGET aslap PROPERTY C_STANDARD 11 OUTPUT_NAME ${CLIENT_PREFIX}aslap)
if(CMAKE_INSTALL_RPATH)
set_target_properties(${CLIENT} PROPERTIES
set_target_properties(aslap PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_RPATH}/../${CMAKE_INSTALL_LIBDIR})
endif()
install(TARGETS memaslap
install(TARGETS aslap
RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()

Expand Down

0 comments on commit cc10890

Please sign in to comment.