Browse Source

Build static lib3mf

Johannes Kreutz 4 năm trước cách đây
mục cha
commit
3c67933ec2
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 .