This change reduces build time by downloading and installing the official binaries of protoc and cmake released by the projects' maintainers rather than building them directly from source. According to local measurements, this speeds up the complete build by 30%.
Additionally, the protobuf version is bumped from v3.15.8 to v3.20.1.
Note that the custom CMake build is used only to compile 'flatc', which is still necessary due to mismatching toolchain versions. A comment explaining this was added as well.
This change reduces build time by downloading and installing the official binaries of
protoc
andcmake
released by the projects' maintainers rather than building them directly from source. According to local measurements, this speeds up the complete build by 30%.Additionally, the protobuf version is bumped from v3.15.8 to v3.20.1.
Note that the custom CMake build is used only to compile 'flatc', which is still necessary due to mismatching toolchain versions. A comment explaining this was added as well.