Skip to content

Commit ea54837

Browse files
committed
missing AdditionalIncludeDirectories
1 parent 8f56be6 commit ea54837

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,22 @@ jobs:
4444
shell: pwsh
4545
run: |
4646
$map = @{
47-
"lib\foobar2000_sdk\libPPUI\libPPUI.vcxproj" = "../..;..;..\..\wtl\Include"
48-
"lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj" = "..;..\..;..\..\..\wtl\Include"
47+
"lib\foobar2000_sdk\libPPUI\libPPUI.vcxproj" = "../..;..;..\..\wtl\Include;%(AdditionalIncludeDirectories)"
48+
"lib\foobar2000_sdk\foobar2000\helpers\foobar2000_sdk_helpers.vcxproj" = "..;..\..;..\..\..\wtl\Include;%(AdditionalIncludeDirectories)"
4949
}
5050
5151
foreach ($f in $map.Keys) {
52-
[xml]$x = Get-Content $f
52+
$filePath = Resolve-Path $f
53+
54+
[xml]$x = Get-Content $filePath
5355
$ns = New-Object System.Xml.XmlNamespaceManager($x.NameTable)
5456
$ns.AddNamespace("msb", "http://schemas.microsoft.com/developer/msbuild/2003")
55-
$x.SelectNodes("//msb:ClCompile/msb:AdditionalIncludeDirectories", $ns) | % { $_.InnerText = $map[$f] }
56-
$x.Save($f)
57+
58+
$x.SelectNodes("//msb:ClCompile/msb:AdditionalIncludeDirectories", $ns) | ForEach-Object {
59+
$_.InnerText = $map[$f]
60+
}
61+
62+
$x.Save($filePath)
5763
}
5864
5965
- name: Setup devcmd

0 commit comments

Comments
 (0)