summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/intel-vars.ps1
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-01 18:01:22 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-01 19:51:21 (GMT)
commit1b44973343d8a61ee30cfe9dc94b3b3c838689c6 (patch)
tree1317a0399c03cc99871f4f811e7d86e70719bd41 /.gitlab/ci/intel-vars.ps1
parenta5fd03a53dda9faf4d2ef9a6a276e0aa4b5bd323 (diff)
downloadCMake-1b44973343d8a61ee30cfe9dc94b3b3c838689c6.zip
CMake-1b44973343d8a61ee30cfe9dc94b3b3c838689c6.tar.gz
CMake-1b44973343d8a61ee30cfe9dc94b3b3c838689c6.tar.bz2
gitlab-ci: Add job testing IntelLLVM 2023.1.0 compilers on Windows
Diffstat (limited to '.gitlab/ci/intel-vars.ps1')
-rwxr-xr-x.gitlab/ci/intel-vars.ps19
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab/ci/intel-vars.ps1 b/.gitlab/ci/intel-vars.ps1
new file mode 100755
index 0000000..dde0aa2
--- /dev/null
+++ b/.gitlab/ci/intel-vars.ps1
@@ -0,0 +1,9 @@
+$erroractionpreference = "stop"
+
+cmd /c "`".gitlab\intel\setvars.bat`" & set" |
+foreach {
+ if ($_ -match "=") {
+ $v = $_.split("=")
+ [Environment]::SetEnvironmentVariable($v[0], $v[1])
+ }
+}