Updated some cmake script

This commit is contained in:
WolverinDEV 2020-01-24 15:11:30 +01:00
parent a6db341785
commit ecdb91c207

View File

@ -14,6 +14,7 @@ requires_rebuild ${library_path}
cd protobuf || exit 1
# git checkout 3.5.1.1
[[ ! -d build ]] && { mkdir build || exit 1; }
cd build || exit 1
cmake ../cmake/ -Dprotobuf_BUILD_TESTS=OFF -DCMAKE_CXX_FLAGS="-std=c++11 -fPIC ${CXX_FLAGS}" -DCMAKE_C_FLAGS="${C_FLAGS}" -DCMAKE_BUILD_TYPE=RelWithDebInfo ${CMAKE_OPTIONS} || exit 1
make ${CMAKE_MAKE_OPTIONS} || exit 1