From 0b6eb3b30e2cdfe715404c53c214be2b067afe85 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 28 Feb 2018 14:26:52 +0100 Subject: [PATCH] Use xargs to avoid long command lines --- cmake/CLangFormat.cmake | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmake/CLangFormat.cmake b/cmake/CLangFormat.cmake index 6c26ef7cf..88c45cec0 100644 --- a/cmake/CLangFormat.cmake +++ b/cmake/CLangFormat.cmake @@ -52,8 +52,5 @@ endforeach () add_custom_target( format - COMMAND clang-format - -style=file - -i - ${ALL_SOURCE_FILES} + COMMAND echo ${ALL_SOURCE_FILES} | xargs clang-format -style=file -i )