summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-07 23:54:57 +0200
committerGitHub <noreply@github.com>2019-04-07 23:54:57 +0200
commit06ece52cfe6a06cd4366735c14a59b5ebae988ca (patch)
tree1ac7b1067e42f8aeb5fbfac6726de1d3f52ef79b
parentMerge pull request #2306 from ReinUsesLisp/aoffi (diff)
parentfix clang-format target when using a path with spaces on windows (diff)
downloadyuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar.gz
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar.bz2
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar.lz
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar.xz
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.tar.zst
yuzu-06ece52cfe6a06cd4366735c14a59b5ebae988ca.zip
-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)
set(CCOMMENT "Running clang format against all the .h and .cpp files in src/")
if (WIN32)
add_custom_target(clang-format
- COMMAND powershell.exe -Command "Get-ChildItem ${SRCS}/* -Include *.cpp,*.h -Recurse | Foreach {${CLANG_FORMAT} -i $_.fullname}"
+ COMMAND powershell.exe -Command "Get-ChildItem '${SRCS}/*' -Include *.cpp,*.h -Recurse | Foreach {&'${CLANG_FORMAT}' -i $_.fullname}"
COMMENT ${CCOMMENT})
elseif(MINGW)
add_custom_target(clang-format