diff --git a/examples/cpp/keepalive/CMakeLists.txt b/examples/cpp/keepalive/CMakeLists.txt index 03681e5e924..8053fba1df6 100644 --- a/examples/cpp/keepalive/CMakeLists.txt +++ b/examples/cpp/keepalive/CMakeLists.txt @@ -58,8 +58,8 @@ target_link_libraries(hw_grpc_proto # Targets greeter_[async_](client|server) foreach(_target - greeter_callback_client greeter_callback_server - add_executable(${_target} "${_target}.cc")) + greeter_callback_client greeter_callback_server) + add_executable(${_target} "${_target}.cc") target_link_libraries(${_target} hw_grpc_proto absl::flags