From df56d476f453468e2bab41226186d65ac2f2fbf4 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Fri, 21 Oct 2022 10:52:33 +0300 Subject: [PATCH] update --- MyxCMake/lib/uncrustify/Uncrustify.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MyxCMake/lib/uncrustify/Uncrustify.cmake b/MyxCMake/lib/uncrustify/Uncrustify.cmake index 25d54bd..fedd417 100644 --- a/MyxCMake/lib/uncrustify/Uncrustify.cmake +++ b/MyxCMake/lib/uncrustify/Uncrustify.cmake @@ -68,7 +68,8 @@ function(myx_uncrustify TARGET_NAME) 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 -c ${ARG_CONFIG} -o ${__fixed_config}) list(APPEND __options -c ${__fixed_config})