Explorar el Código

Build static lib3mf

Johannes Kreutz hace 4 años
padre
commit
3c67933ec2
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      trackpoint-app/thirdparty/lib3mf.sh

+ 4 - 0
trackpoint-app/thirdparty/lib3mf.sh

@@ -37,6 +37,10 @@ fi
 git clone --depth 1 --branch $LIB3MF_TAG $LIB3MF_REPO
 pushd lib3mf
 
+if [ $1 == "release" ]; then
+  sed -i "s|SHARED|STATIC|g" CMakeLists.txt
+fi
+
 cmake . -DCMAKE_INSTALL_PREFIX="$DEPLOYDIR" $CONFIG $OPTIONS
 cmake --build . --parallel $JOBS
 cmake --install .