diff --git a/Source/cmStringAlgorithms.h b/Source/cmStringAlgorithms.h index 314124e409..b0d01c00ba 100644 --- a/Source/cmStringAlgorithms.h +++ b/Source/cmStringAlgorithms.h @@ -167,7 +167,7 @@ void cmTokenize(OutIt outIt, cm::string_view str, Sep sep, } // clang-format on if (!hasTokens && mode == cmTokenizerMode::Legacy) { - *outIt = {}; + *outIt = StringT{}; } }