From 7e75b0764faa1492d601a3f3dd114dd50524b8c2 Mon Sep 17 00:00:00 2001 From: Alex Hoffman Date: Mon, 9 Sep 2024 14:20:14 +0200 Subject: [PATCH] Added version printing to Astyle workflow target --- cmake/tests.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/tests.cmake b/cmake/tests.cmake index bc36bec..af22b9b 100644 --- a/cmake/tests.cmake +++ b/cmake/tests.cmake @@ -83,8 +83,13 @@ if(ENABLE_ASTYLE) ${CHECK_FILES} ) + list(APPEND ASTYLE_VERSION + --version + ) + add_custom_target( format + COMMAND ${ASTYLE_BIN} ${ASTYLE_VERSION} COMMAND ${ASTYLE_BIN} ${ASTYLE_ARGS} COMMENT "running astyle" )