Index: tools/clang-format/CMakeLists.txt =================================================================== --- tools/clang-format/CMakeLists.txt +++ tools/clang-format/CMakeLists.txt @@ -4,6 +4,14 @@ ClangFormat.cpp ) +if( PURE_WINDOWS ) + # Add support for wildcard expansion in command-line arguments on Windows. + # See + # https://docs.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments + set_property(TARGET clang-format APPEND_STRING PROPERTY + LINK_FLAGS " setargv.obj") +endif() + set(CLANG_FORMAT_LIB_DEPS clangBasic clangFormat