Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Jan 9, 2025
1 parent 9dfa1d4 commit 3e7344e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ENV PATH=/root/.cargo/bin:$PATH
RUN cd ~ && git clone --depth 1 'https://github.com/fmtlib/fmt' \
&& cd fmt && mkdir -p build && cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. "-DCMAKE_INSTALL_PREFIX=/clib" \
-DFMT_DOC=OFF -DFMT_TEST=OFF \
-DBUILD_SHARED_LIBS=ON -DFMT_DOC=OFF -DFMT_TEST=OFF \
&& make -j$(grep -c ^processor /proc/cpuinfo) && make install \
&& cd ~ && rm -rf fmt
RUN cd ~ && git clone --depth 1 'https://github.com/Exiv2/exiv2' \
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export PREFIX=`pwd`/clib
mkdir -p cbuild && cd cbuild || exit 1
git clone --depth 1 'https://github.com/fmtlib/fmt' && cd fmt || exit 1
mkdir -p build && cd build || exit 1
cmake -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$PREFIX" -DFMT_DOC=OFF -DFMT_TEST=OFF ../ || exit 1
cmake -DCMAKE_BUILD_TYPE=Release "-DCMAKE_INSTALL_PREFIX=$PREFIX" -DBUILD_SHARED_LIBS=ON -DFMT_DOC=OFF -DFMT_TEST=OFF ../ || exit 1
make -j8 && make install || exit 1
1 change: 1 addition & 0 deletions scripts/build_win_fmt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cmake ^
-DCMAKE_PREFIX_PATH=%PREFIX% ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%PREFIX% ^
-DBUILD_SHARED_LIBS=ON ^
-DFMT_DOC=OFF ^
-DFMT_TEST=OFF ^
../ || EXIT /B %ERRORLEVEL%
Expand Down

0 comments on commit 3e7344e

Please sign in to comment.