Skip to content

Commit 2a0a7fa

Browse files
authored
Targets that add compiler options must run before FixupCLCompileOptions (#742)
1 parent bf79226 commit 2a0a7fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nuget/Microsoft.Windows.CppWinRT.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,12 @@ Copyright (C) Microsoft Corporation. All rights reserved.
8282
<BeforeClCompileTargets>
8383
$(BeforeClCompileTargets);CppWinRTAddXamlMetaDataProviderCpp;CppWinRTMakeProjections;
8484
</BeforeClCompileTargets>
85+
86+
<!-- Ensure ComputeCompileInputsTargets runs at the end so that FixupCLCompileOptions is the last to run -->
8587
<ComputeCompileInputsTargets>
86-
$(ComputeCompileInputsTargets);CppWinRTComputeXamlGeneratedCompileInputs;CppWinRTHeapEnforcementOptOut;
88+
CppWinRTComputeXamlGeneratedCompileInputs;$(ComputeCompileInputsTargets);CppWinRTHeapEnforcementOptOut;
8789
</ComputeCompileInputsTargets>
90+
8891
<MarkupCompilePass1DependsOn>
8992
$(MarkupCompilePass1DependsOn);CppWinRTAddXamlReferences
9093
</MarkupCompilePass1DependsOn>

0 commit comments

Comments
 (0)