Skip to content

Commit

Permalink
fix: weasel.props.template does not works for visual studio IDE build
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang committed Apr 22, 2024
1 parent bd8fb35 commit 197d8a2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions weasel.props.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<PropertyGroup>
<_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion>
<_PropertySheetDisplayName>Weasel Project Properties</_PropertySheetDisplayName>
<VERSION_MAJOR Condition="'$(VERSION_MAJOR)' == ''">0</VERSION_MAJOR>
<VERSION_MINOR Condition="'$(VERSION_MINOR)' == ''">15</VERSION_MINOR>
<VERSION_PATCH Condition="'$(VERSION_PATCH)' == ''">0</VERSION_PATCH>
<PRODUCT_VERSION Condition="'$(PRODUCT_VERSION)' == ''">0.15.0.0</PRODUCT_VERSION>
<FILE_VERSION Condition="'$(FILE_VERSION)' == ''">0.15.0.0</FILE_VERSION>
</PropertyGroup>
<ItemGroup>
<BuildMacro Include="BOOST_ROOT">
Expand All @@ -18,9 +23,9 @@
<EnvironmentVariable>true</EnvironmentVariable>
</BuildMacro>
</ItemGroup>
<ItemDefinitionGroup>
<ResourceCompile>
<PreprocessorDefinitions>$(PreprocessorDefinitions);VERSION_MAJOR=$(VERSION_MAJOR);VERSION_MINOR=$(VERSION_MINOR);VERSION_PATCH=$(VERSION_PATCH);PRODUCT_VERSION=$(PRODUCT_VERSION);FILE_VERSION=$(FILE_VERSION);</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup>
<ResourceCompile>
<PreprocessorDefinitions>$(PreprocessorDefinitions);VERSION_MAJOR=$(VERSION_MAJOR);VERSION_MINOR=$(VERSION_MINOR);VERSION_PATCH=$(VERSION_PATCH);PRODUCT_VERSION=$(PRODUCT_VERSION);FILE_VERSION=$(FILE_VERSION);</PreprocessorDefinitions>
</ResourceCompile>
</ItemDefinitionGroup>
</Project>

0 comments on commit 197d8a2

Please sign in to comment.