cmake: fix target properties
authorMichael Wallner <mike@php.net>
Tue, 28 Feb 2023 08:01:21 +0000 (09:01 +0100)
committerMichael Wallner <mike@php.net>
Tue, 28 Feb 2023 08:01:21 +0000 (09:01 +0100)
contrib/bin/memaslap/CMakeLists.txt
src/bin/CMakeLists.txt

index c0a587ad13a52a555d716816c08b33d5b183abd8..49a852c609a79448b8527fb6531db74c8a21239e 100644 (file)
@@ -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})
index 78bafe2991617158f6889933c6263144d643c7fc..d824ec7e0f70135d9b65c9c3f07f1ee9a89d9503 100644 (file)
@@ -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)