This commit is contained in:
Andrei Astafev 2022-10-21 10:52:33 +03:00
parent acfff07ec5
commit df56d476f4

View File

@ -68,7 +68,8 @@ function(myx_uncrustify TARGET_NAME)
set(__fixed_config ${PROJECT_BINARY_DIR}/uncrustify-${TARGET_NAME}.cfg) set(__fixed_config ${PROJECT_BINARY_DIR}/uncrustify-${TARGET_NAME}.cfg)
add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/uncrustify-${TARGET_NAME}.cfg add_custom_command(OUTPUT ${__fixed_config}
DEPENDS ${ARG_CONFIG}
COMMAND ${UNCRUSTIFY_EXE} --update-config-with-doc COMMAND ${UNCRUSTIFY_EXE} --update-config-with-doc
-c ${ARG_CONFIG} -o ${__fixed_config}) -c ${ARG_CONFIG} -o ${__fixed_config})
list(APPEND __options -c ${__fixed_config}) list(APPEND __options -c ${__fixed_config})