mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 02:52:44 +00:00
fix clang-format target when using a path with spaces on windows
This commit is contained in:
parent
daeba65fb4
commit
7842decde6
|
@ -336,7 +336,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
|
||||
|
|
Loading…
Reference in a new issue