]> granicus.if.org Git - graphviz/commitdiff
ci/mingw-build.sh: set CMAKE_OPTIONS only when using CMake
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Fri, 26 Nov 2021 05:41:23 +0000 (06:41 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:01 +0000 (07:35 +0100)
ci/mingw-build.sh

index f53f40bd0d4e1db021329e6f6e3d0202aec7c77b..d9c7328742171f8ec4ac7e4170f4cc73cace1a1f 100644 (file)
@@ -6,8 +6,10 @@ ci/mingw-install.sh
 
 export PATH=$PATH:/c/Git/cmd
 
-# use the libs installed with pacman instead of those in
-# https://gitlab.com/graphviz/graphviz-windows-dependencies
-export CMAKE_OPTIONS=-Duse_win_pre_inst_libs=OFF
+if [ "${build_system}" = "cmake" ]; then
+    # use the libs installed with pacman instead of those in
+    # https://gitlab.com/graphviz/graphviz-windows-dependencies
+    export CMAKE_OPTIONS=-Duse_win_pre_inst_libs=OFF
+fi
 
 ci/build.sh