Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Suggest build-gmsh.sh script #8

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ source env-build-fenics.sh
./build-python-modules.sh
./build-pugixml.sh
./build-fenics.sh
./build-gmsh.sh

mkdir -p ${PREFIX}/bin
cp env-build-fenics.sh ${PREFIX}/bin/env-build-fenics.sh
Expand Down
13 changes: 13 additions & 0 deletions build-gmsh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -l
set -e
source env-build-fenics.sh

VERSION="3.25.3"

mkdir -p $BUILD_DIR

RUN git clone -b gmsh_${GMSH_VERSION} --single-branch --depth 1 https://gitlab.onelab.info/gmsh/gmsh.git && \
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=${PREFIX} -DCMAKE_BUILD_TYPE=Release -DENABLE_BUILD_DYNAMIC=1 -DENABLE_OPENMP=1 -B build-dir -S gmsh && \
cmake --build build-dir && \
cmake --install build-dir && \
rm -rf /tmp/*