From 9519489e5155872939b4a68bad2408da1a23e42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Tue, 4 Feb 2020 07:49:00 +0000 Subject: [PATCH] hard coded vs compiler --- scripts/run_cmake.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/run_cmake.ps1 b/scripts/run_cmake.ps1 index d153c00..905d607 100644 --- a/scripts/run_cmake.ps1 +++ b/scripts/run_cmake.ps1 @@ -44,6 +44,11 @@ Push-Location build # load Vistual Studio environment variables Invoke-CmdScript "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 +# Make sure we're using the Vistual Studio compiler and linker +$env:CC=cl +$env:CXX=cl +$env:LD=link + # call CMake $ErrorActionPreference="Continue" Invoke-Call -ScriptBlock {