@@ -53,11 +53,14 @@ _userver_prepare_chaotic()
5353
5454# Generates ${TARGET} cmake target for C++ types, parsers, serializers from JSONSchema file(s).
5555#
56- # Options: - OUTPUT_DIR - where to put generated .cpp/.hpp/.ipp files, usually ${CMAKE_CURRENT_BINARY_DIR}/smth -
57- # RELATIVE_TO - --relative-to option to chaotic-gen - FORMAT - can be ON/OFF, enable to format generated files, defaults
58- # to USERVER_CHAOTIC_FORMAT - SCHEMAS - JSONSchema source files - ARGS - extra args to chaotic-gen -
59- # INSTALL_INCLUDES_COMPONENT - component to install generated includes
60- # LINK_TARGETS - targets to link (used by x-usrv-cpp-type)
56+ # Options:
57+ # - OUTPUT_DIR - where to put generated .cpp/.hpp/.ipp files, usually ${CMAKE_CURRENT_BINARY_DIR}/smth
58+ # - RELATIVE_TO - --relative-to option to chaotic-gen
59+ # - FORMAT - can be ON/OFF, enable to format generated files, defaults to USERVER_CHAOTIC_FORMAT
60+ # - SCHEMAS - JSONSchema source files
61+ # - ARGS - extra args to chaotic-gen
62+ # - INSTALL_INCLUDES_COMPONENT - component to install generated includes
63+ # - LINK_TARGETS - targets to link (used by x-usrv-cpp-type)
6164function (userver_target_generate_chaotic TARGET )
6265 set (OPTIONS GENERATE_SERIALIZERS PARSE_EXTRA_FORMATS)
6366 set (ONE_VALUE_ARGS OUTPUT_DIR RELATIVE_TO FORMAT INSTALL_INCLUDES_COMPONENT OUTPUT_PREFIX ERASE_PATH_PREFIX)
@@ -149,7 +152,7 @@ function(userver_target_generate_chaotic TARGET)
149152 OUTPUT ${SCHEMAS}
150153 COMMAND ${CMAKE_COMMAND} -E env "USERVER_PYTHON=${USERVER_CHAOTIC_PYTHON_BINARY} " "${CHAOTIC_BIN} "
151154 ${CHAOTIC_EXTRA_ARGS} ${CHAOTIC_ARGS} ${PARSE_SCHEMAS}
152- --clang-format "" # " ${CLANG_FORMAT}"
155+ --clang-format "${CLANG_FORMAT} "
153156 DEPENDS ${PARSE_SCHEMAS}
154157 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} "
155158 VERBATIM ${CODEGEN}
0 commit comments