File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -836,11 +836,11 @@ function Build-CMakeProject {
836
836
}
837
837
838
838
if ($Platform -eq " Android" ) {
839
- $vsWherePath = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe"
840
- $vsInstallPath = & $vsWherePath - latest - property installationPath
841
- if (Test-Path " ${vsInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin" ) {
842
- $env: Path = " ${vsInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;${vsInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;${env: Path} "
843
- TryAdd- KeyValue $Defines CMAKE_MAKE_PROGRAM " ${vsInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
839
+ $vswhere = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Installer\vswhere.exe"
840
+ $VSInstallPath = & $vswhere - nologo - latest - products * - property installationPath
841
+ if (Test-Path " ${VSInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin" ) {
842
+ $env: Path = " ${VSInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;${VSInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;${env: Path} "
843
+ TryAdd- KeyValue $Defines CMAKE_MAKE_PROGRAM " ${VSInstallPath } \Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja\ninja.exe"
844
844
} else {
845
845
throw " Missing CMake and Ninja in the visual studio installation that are needed to build Android"
846
846
}
You can’t perform that action at this time.
0 commit comments