Skip to content

Commit 118ac61

Browse files
committed
Fix userver_add_grpc_library command formatting
1 parent 7a028bf commit 118ac61

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.cmake-format.py

+7
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
},
6868
"flags": ["UNIQUE"],
6969
},
70+
"userver_add_grpc_library": {
71+
"pargs": 1,
72+
"kwargs": {
73+
"PROTOS": "*",
74+
"INCLUDE_DIRECTORIES": "*",
75+
},
76+
},
7077
}
7178

7279
# -----------------------------

grpc/CMakeLists.txt

+10-12
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,16 @@ endif()
141141
if(USERVER_BUILD_TESTS)
142142
userver_add_grpc_library(
143143
${PROJECT_NAME}-unittest-proto
144-
PROTOS
145-
# Absolute paths are allowed
146-
${CMAKE_CURRENT_SOURCE_DIR}/proto/tests/unit_test.proto
147-
# As well as paths relative to CMAKE_CURRENT_SOURCE_DIR
148-
tests/messages.proto
149-
tests/protobuf.proto
150-
tests/same_service_and_method_name.proto
151-
tests/global_package.proto
152-
tests/repeating_word_in_package_name.proto
153-
tests/secret_fields.proto
154-
INCLUDE_DIRECTORIES
155-
${CMAKE_CURRENT_SOURCE_DIR}/proto
144+
PROTOS # Absolute paths are allowed
145+
${CMAKE_CURRENT_SOURCE_DIR}/proto/tests/unit_test.proto
146+
# As well as paths relative to CMAKE_CURRENT_SOURCE_DIR
147+
tests/messages.proto
148+
tests/protobuf.proto
149+
tests/same_service_and_method_name.proto
150+
tests/global_package.proto
151+
tests/repeating_word_in_package_name.proto
152+
tests/secret_fields.proto
153+
INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/proto
156154
)
157155

158156
add_executable(${PROJECT_NAME}-unittest ${UNIT_TEST_SOURCES})

0 commit comments

Comments
 (0)