mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
build: fix protobuf v31.0 build (#419)
This commit is contained in:
parent
7a37772761
commit
b5222b5f7d
@ -23,7 +23,7 @@ clean() {
|
||||
}
|
||||
|
||||
#### protobuf ####
|
||||
git clone --recurse-submodules -b v30.2 --depth 1 --shallow-submodules https://github.com/parhelia512/protobuf
|
||||
git clone --recurse-submodules -b v31.0 --depth 1 --shallow-submodules https://github.com/protocolbuffers/protobuf
|
||||
|
||||
mkdir -p protobuf/build
|
||||
cd protobuf/build
|
||||
@ -34,7 +34,6 @@ $cmake .. -GNinja \
|
||||
-Dprotobuf_BUILD_TESTS=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
|
||||
-Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \
|
||||
-Dprotobuf_BUILD_LIBUPB=OFF \
|
||||
-DCMAKE_OSX_ARCHITECTURES=$1 \
|
||||
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 \
|
||||
-DCMAKE_CXX_STANDARD=17
|
||||
|
||||
Loading…
Reference in New Issue
Block a user