ubisoft / Sharpmake

Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
Apache License 2.0
927 stars 171 forks source link

Unexpected behaviour with SourceFilesExcludeRegex #206

Open Unarelith opened 2 years ago

Unarelith commented 2 years ago

Hello,

I've noticed a weird behaviour when using SourceFilesExcludeRegex.

I was expecting it to match on the path, starting from current project path, but it actually matches on the full path.

For example, if I have the following path: C:/Users/Unarelith_ex/Perforce/MyProject/ex, when I do SourceFilesExcludeRegex.Add("ex") to exclude my "ex" folder, it will exclude all the files from my project since "ex" is also in my username.

Is it that way on purpose or is it a bug?