mirror of
https://github.com/qbittorrent/docker-qbittorrent-nox.git
synced 2024-11-26 19:00:33 +00:00
Use CMake flag for requiring C++20
This commit is contained in:
parent
3625c9ef8b
commit
a7eb530ce5
@ -60,13 +60,12 @@ RUN \
|
||||
--recurse-submodules \
|
||||
https://github.com/arvidn/libtorrent.git && \
|
||||
cd libtorrent && \
|
||||
CFLAGS="$CFLAGS -std=c++20" \
|
||||
CXXFLAGS="$CXXFLAGS -std=c++20" \
|
||||
cmake \
|
||||
-B build \
|
||||
-G Ninja \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_CXX_STANDARD=20 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
|
||||
-Ddeprecated-functions=OFF \
|
||||
|
@ -60,13 +60,12 @@ RUN \
|
||||
--recurse-submodules \
|
||||
https://github.com/arvidn/libtorrent.git && \
|
||||
cd libtorrent && \
|
||||
CFLAGS="$CFLAGS -std=c++20" \
|
||||
CXXFLAGS="$CXXFLAGS -std=c++20" \
|
||||
cmake \
|
||||
-B build \
|
||||
-G Ninja \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_CXX_STANDARD=20 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
|
||||
-Ddeprecated-functions=OFF \
|
||||
|
Loading…
Reference in New Issue
Block a user