Skip to content

Commit e340b56

Browse files
SmelJeyDecoyRS
authored andcommitted
[RiderJson] Fix system include paths for win32
1 parent 0b28c76 commit e340b56

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sharpmake.Generators/Generic/RiderJson.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ private void GenerateConfiguration(RiderGenerationContext context, List<string>
332332
}
333333

334334
var platformVcxproj = PlatformRegistry.Query<IPlatformVcxproj>(context.Configuration.Platform);
335+
if (context.DevelopmentEnvironment.IsVisualStudio())
336+
{
337+
var winIncludePath = context.DevelopmentEnvironment.GetWindowsIncludePath();
338+
includePaths.AddRange(winIncludePath.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
339+
}
340+
335341
includePaths.AddRange(platformVcxproj.GetPlatformIncludePaths(context));
336342

337343
defines.AddRange(platformVcxproj.GetImplicitlyDefinedSymbols(context));

0 commit comments

Comments
 (0)