Skip to content

Commit

Permalink
deps.ffmpeg: Fix Visual Studio ID/version for librist
Browse files Browse the repository at this point in the history
The year/ID component of the Visual Studio display name is not always
the fourth token. As far as I can tell, it is always the last token, so
we can just get that. This is what we do in Setup-Target.ps1.
  • Loading branch information
RytoEX committed Jul 30, 2024
1 parent 58893b0 commit 72aabe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps.ffmpeg/70-librist.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Configure {
}

$VisualStudioData = Find-VisualStudio
$VisualStudioId = ($VisualStudioData.DisplayName -split ' ')[3]
$VisualStudioId = ($VisualStudioData.DisplayName -split ' ')[-1]

$Options = @(
'--buildtype', "$($ConfigStrings[$Configuration])"
Expand Down

0 comments on commit 72aabe7

Please sign in to comment.