From: Michael Wallner Date: Tue, 28 Feb 2023 08:01:21 +0000 (+0100) Subject: cmake: fix target properties X-Git-Tag: 1.1.4~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=279113c84c6059e4d0f75a2102c05ecc0daa0d19;p=awesomized%2Flibmemcached cmake: fix target properties --- diff --git a/contrib/bin/memaslap/CMakeLists.txt b/contrib/bin/memaslap/CMakeLists.txt index c0a587ad..49a852c6 100644 --- a/contrib/bin/memaslap/CMakeLists.txt +++ b/contrib/bin/memaslap/CMakeLists.txt @@ -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}) diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 78bafe29..d824ec7e 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -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)