diff --git a/Sharpmake/SourceAttributeParser.cs b/Sharpmake/SourceAttributeParser.cs index 0d1050538..1e5672586 100644 --- a/Sharpmake/SourceAttributeParser.cs +++ b/Sharpmake/SourceAttributeParser.cs @@ -53,7 +53,7 @@ public static Regex CreateAttributeRegex(string attributeTarget, string attribut regex += $@"{Regex.Escape(attributeName)}{dp}"; if (parameterCount == 0) { - regex += $@"(?:\({dp}\))"; + regex += $@"(?:\({dp}\))?"; } else {