]> granicus.if.org Git - graphviz/commitdiff
Ensure that Graphviz tools are found first in Windows CMake jobs
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 23 Oct 2020 10:41:52 +0000 (12:41 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 24 Oct 2020 06:12:37 +0000 (08:12 +0200)
Prepend Graphviz bin directory to path instead of appending it.

The tools test found
C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86\gc.exe
before Graphviz gc.

.gitlab-ci.yml

index 26d42e2a69359d7cef2a6be2b7a52ccaf0836570..00dc0b46b1871f4838926ae0d7d98db421d54e0b 100644 (file)
@@ -139,7 +139,7 @@ portable-source:
               # will then fail because the install hasn't finished)
               ./graphviz-install.exe /S /D=$env:graphviz_install_dir | Out-Null;
               mv graphviz-install.exe graphviz-install-$Env:GV_VERSION-$API.exe;
-              $env:Path += ";" + $env:graphviz_install_dir + "\bin"
+              $env:Path = $env:graphviz_install_dir + "\bin" + ";" + $env:Path
               cd ..;
               $Env:INCLUDE += ";C:\Graphviz\include";
               $Env:LIB += ";C:\Graphviz\lib";