Skip to content

Commit

Permalink
Only build the reference projection when there are references.
Browse files Browse the repository at this point in the history
Only build the reference projection when there are references.
  • Loading branch information
jlaanstra authored Oct 21, 2019
1 parent e4830e1 commit c8d27c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuget/Microsoft.Windows.CppWinRT.targets
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ $(XamlMetaDataProviderPch)

<!--Build reference projection from WinMD project references and dynamic library project references-->
<Target Name="CppWinRTMakeReferenceProjection"
Condition="'$(CppWinRTEnableReferenceProjection)' == 'true'"
Condition="'@(CppWinRTDirectWinMDReferences)@(CppWinRTDynamicProjectWinMDReferences)' != '' AND '$(CppWinRTEnableReferenceProjection)' == 'true'"
DependsOnTargets="GetCppWinRTProjectWinMDReferences;GetCppWinRTPlatformWinMDReferences;GetCppWinRTDirectWinMDReferences;$(CppWinRTMakeReferenceProjectionDependsOn)"
Inputs="@(CppWinRTDirectWinMDReferences);@(CppWinRTDynamicProjectWinMDReferences);@(CppWinRTPlatformWinMDReferences)"
Outputs="@(CppWinRTDirectWinMDReferences->'$(GeneratedFilesDir)winrt\%(Filename).h');@(CppWinRTDynamicProjectWinMDReferences->'$(GeneratedFilesDir)winrt\%(Filename).h')">
Expand Down

0 comments on commit c8d27c1

Please sign in to comment.