Skip to content

Commit

Permalink
vswhere
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed May 11, 2021
1 parent bb81dad commit 9bfeec4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/ci/win/cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ pwd
echo "ENV"
env
echo "VSWHERE"
vswhere
echo "WHERE"
vswhere -property installationPath
echo "VSWHERE2"
loc=$(vswhere -nologo -property installationPath)
echo "CUT"
path=$(echo $loc | cut -d ":" -f2)
echo "SUB"
path=${path:1}
path=$path\VC\Auxiliary\Build"
echo "PATH = $path"
echo "VARSALL"
$path\vcvarsall.bat
where cl.exe
export CC=cl.exe
export CXX=cl.exe
Expand Down

0 comments on commit 9bfeec4

Please sign in to comment.