Skip to content

Commit

Permalink
Merge c1b0547 into 90d6766
Browse files Browse the repository at this point in the history
  • Loading branch information
dep5 authored Feb 24, 2022
2 parents 90d6766 + c1b0547 commit 9ebaf75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sakura/githash.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
Outputs="$(GeneratedGitHash)"
AfterTargets="SelectClCompile"
BeforeTargets="ClCompile">
<PropertyGroup>
<VsVersion>$([System.Text.RegularExpressions.Regex]::Replace('$(VisualStudioVersion)', '^(\d+).*', '$1'))</VsVersion>
</PropertyGroup>
<SetEnv name="NUM_VSVERSION" value="$(VsVersion)" prefix="false" />
<Exec Command="..\sakura\githash.bat ..\sakura_core $(GeneratedGitHash)" />
</Target>
</Project>
1 change: 1 addition & 0 deletions tools/find-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ exit /b
exit /b

:cmake
set /a NUM_VSVERSION_NEXT=NUM_VSVERSION + 1
for /f "usebackq delims=" %%a in (`"%CMD_VSWHERE%" -property installationPath -version [%NUM_VSVERSION%^,%NUM_VSVERSION_NEXT%^)`) do (
pushd "%%a"
call "%%a\Common7\Tools\vsdevcmd\ext\cmake.bat"
Expand Down

0 comments on commit 9ebaf75

Please sign in to comment.