Skip to content

Commit 3355aeb

Browse files
committed
Using other trick
1 parent 8c4eca3 commit 3355aeb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.circleci/config.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,22 @@ jobs:
5454
- run:
5555
name: Pre-build (set up MSVC)
5656
command: |
57-
@"<< parameters.vspath >>\VC\Auxiliary\Build\vcvarsall.bat" << parameters.arch >>
57+
cmd.exe /c "call `"<< parameters.vspath >>\VC\Auxiliary\Build\vcvarsall.bat`" << parameters.arch >> && set > %temp%\vcvars.txt"
58+
Get-Content "$env:temp\vcvars.txt" Foreach-Object {
59+
if ($_ -match "^(.*?)=(.*)$") {
60+
Set-Content "env:\$($matches[1])" $matches[2]
61+
}
62+
}
5863
dist.bat gen
5964
cmake . -G "NMake Makefiles"
60-
shell: cmd.exe /c
6165
- run:
6266
name: Build
6367
command: nmake
64-
shell: cmd.exe /c
68+
shell: cmd.exe
6569
- run:
6670
name: Test
6771
command: ctest -V -LE json
68-
shell: cmd.exe /c
72+
shell: cmd.exe
6973

7074
workflows:
7175
ubuntu-build:

0 commit comments

Comments
 (0)