Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Updated Dockerfile to enable passing extra cmake build options via th…
Browse files Browse the repository at this point in the history
…e argument EXTRA_CMAKE_OPTIONS
  • Loading branch information
daminton committed Jul 28, 2023
1 parent 4654a95 commit 2b6885f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ ENV F77="${FC}"
# https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-guide-reference/2023-1/x-qx.html
ARG MACHINE_CODE_VALUE="sse2"

# Build type options are DEBUG, RELEASE, PROFILE, or TESTING.
ARG BUILD_TYPE="RELEASE"

# Additional CMAKE options:
ARG EXTRA_CMAKE_OPTIONS=""

# Swiftest
ENV NETCDF_HOME=${INSTALL_DIR}
ENV NETCDF_FORTRAN_HOME=${NETCDF_HOME}
Expand All @@ -112,7 +114,8 @@ RUN cd swiftest && \
-DMACHINE_CODE_VALUE=${MACHINE_CODE} \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DUSE_COARRAY=OFF \
-DBUILD_SHARED_LIBS=OFF && \
-DBUILD_SHARED_LIBS=OFF \
${EXTRA_CMAKE_OPTIONS} && \
cmake --build build && \
cmake --install build

Expand Down

0 comments on commit 2b6885f

Please sign in to comment.