Skip to content

Commit

Permalink
cmake: fix target properties
Browse files Browse the repository at this point in the history
  • Loading branch information
m6w6 committed Feb 28, 2023
1 parent cc10890 commit 279113c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/bin/memaslap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if(ENABLE_MEMASLAP AND CMAKE_USE_PTHREADS_INIT)
${CMAKE_BINARY_DIR}/src
${CMAKE_BINARY_DIR})
target_link_libraries(aslap PRIVATE libmemcached Threads::Threads ${LIBEVENT} m)
set_property(TARGET aslap PROPERTY C_STANDARD 11 OUTPUT_NAME ${CLIENT_PREFIX}aslap)
set_target_properties(aslap PROPERTIES C_STANDARD 11 OUTPUT_NAME ${CLIENT_PREFIX}aslap)
if(CMAKE_INSTALL_RPATH)
set_target_properties(aslap PROPERTIES
INSTALL_RPATH ${CMAKE_INSTALL_RPATH}/../${CMAKE_INSTALL_LIBDIR})
Expand Down
2 changes: 1 addition & 1 deletion src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ add_subdirectory(common)

foreach(CLIENT IN LISTS CLIENTS)
add_executable(${CLIENT} mem${CLIENT}.cc)
set_property(TARGET ${CLIENT} PROPERTY CXX_STANDARD ${CXX_STANDARD} OUTPUT_NAME ${CLIENT_PREFIX}${CLIENT})
set_target_properties(${CLIENT} PROPERTIES CXX_STANDARD ${CXX_STANDARD} OUTPUT_NAME ${CLIENT_PREFIX}${CLIENT})
target_include_directories(${CLIENT} PRIVATE ..)
target_link_libraries(${CLIENT} PRIVATE libclient_common)
if(CMAKE_INSTALL_RPATH)
Expand Down

0 comments on commit 279113c

Please sign in to comment.