microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.29k stars 310 forks source link

MSFT: 49941670 - Fix UWP build break due to SpectreMitigation build property #320

Closed brbeec closed 4 months ago

brbeec commented 4 months ago

Why is this change being made?

The out-of-proc WME build (VC_Target_Library_Platform=Store) is broken after #319 added SpectreMitigation=Spectre due to LNK1104: cannot open file 'msvcprt.lib'.

/Qspectre | Microsoft Learn

There are no versions of Spectre-mitigated libraries for Universal Windows (UWP) apps or components.

What changed?

Only set SpectreMitigation=Spectre when VC_Target_Library_Platform=Desktop or VC_Target_Library_Platform=OneCore.

How was the change tested?