Use CMake flag for requiring C++20

This commit is contained in:
Chocobo1 2024-07-26 15:23:11 +08:00
parent 3625c9ef8b
commit a7eb530ce5
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 2 additions and 4 deletions

View File

@ -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 \

View File

@ -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 \