summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab18275d3..6a417017c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -309,7 +309,7 @@ if (CLANG_FORMAT)
309 set(CCOMMENT "Running clang format against all the .h and .cpp files in src/") 309 set(CCOMMENT "Running clang format against all the .h and .cpp files in src/")
310 if (WIN32) 310 if (WIN32)
311 add_custom_target(clang-format 311 add_custom_target(clang-format
312 COMMAND powershell.exe -Command "Get-ChildItem ${SRCS}/* -Include *.cpp,*.h -Recurse | Foreach {${CLANG_FORMAT} -i $_.fullname}" 312 COMMAND powershell.exe -Command "Get-ChildItem '${SRCS}/*' -Include *.cpp,*.h -Recurse | Foreach {&'${CLANG_FORMAT}' -i $_.fullname}"
313 COMMENT ${CCOMMENT}) 313 COMMENT ${CCOMMENT})
314 elseif(MINGW) 314 elseif(MINGW)
315 add_custom_target(clang-format 315 add_custom_target(clang-format