Browse Source

Build static lib3mf

Johannes Kreutz 3 years ago
parent
commit
3c67933ec2
1 changed files with 4 additions and 0 deletions
  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 .