1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

compile FMT as shared library, use external FMT lib in SPDLOG

This commit is contained in:
Sonja Happ 2019-09-16 16:03:45 +02:00
parent 2101fa5fa8
commit ef4c252c2e
2 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ RUN cd /tmp && \
git clone --recursive https://github.com/fmtlib/fmt.git && \
mkdir -p fmt/build && cd fmt/build && \
git checkout 6.0.0 && \
cmake .. && make -j$(nproc) install && \
cmake -DBUILD_SHARED_LIBS=1 .. && make -j$(nproc) install && \
rm -rf /tmp/*
# Build & Install spdlog
@ -92,7 +92,7 @@ RUN cd /tmp && \
git clone --recursive https://github.com/gabime/spdlog.git && \
mkdir -p spdlog/build && cd spdlog/build && \
git checkout v1.3.1 && \
cmake -DSPDLOG_BUILD_BENCH=OFF .. && make -j$(nproc) install && \
cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_FMT_EXTERNAL=1 -DSPDLOG_BUILD_BENCH=OFF .. && make -j$(nproc) install && \
rm -rf /tmp/*
# Build & Install libwebsockets

View file

@ -85,7 +85,7 @@ RUN cd /tmp && \
git clone --recursive https://github.com/fmtlib/fmt.git && \
mkdir -p fmt/build && cd fmt/build && \
git checkout 6.0.0 && \
cmake .. && make -j$(nproc) install && \
cmake -DBUILD_SHARED_LIBS=1 .. && make -j$(nproc) install && \
rm -rf /tmp/*
# Build & Install spdlog
@ -93,7 +93,7 @@ RUN cd /tmp && \
git clone --recursive https://github.com/gabime/spdlog.git && \
mkdir -p spdlog/build && cd spdlog/build && \
git checkout v1.3.1 && \
cmake -DSPDLOG_BUILD_BENCH=OFF .. && make -j$(nproc) install && \
cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_FMT_EXTERNAL=1 -DSPDLOG_BUILD_BENCH=OFF .. && make -j$(nproc) install && \
rm -rf /tmp/*
# Build & Install Criterion