cross compile pytoch using cmake , get an error : protobuf::protoc: command not found
Labels: needs reproduction, module: build, triaged

### 🐛 Describe the bug
```
.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeCast.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/Type_demangle.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/Type_no_demangle.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/Unicode.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/UniqueVoidPtr.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/complex_math.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/int128.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/intrusive_ptr.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/numa.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/signal_handler.cpp.o
In file included from /pytorch/pytorch/third_party/fmt/include/fmt/format.h:49:0,
                 from /pytorch/pytorch/c10/util/signal_handler.cpp:10:
/pytorch/pytorch/third_party/fmt/include/fmt/core.h: In instantiation of ‘struct fmt::v9::basic_format_specs<char>’:
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2205:8:   required from ‘struct fmt::v9::detail::dynamic_format_specs<char>’
/pytorch/pytorch/third_party/fmt/include/fmt/format.h:3932:38:   required from here
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2154:19: warning: ‘fmt::v9::basic_format_specs<char>::align’ is too small to hold all values of ‘using align_t = enum fmt::v9::align::type {aka enum fmt::v9::align::type}’
   align_t align : 4;
                   ^
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2155:17: warning: ‘fmt::v9::basic_format_specs<char>::sign’ is too small to hold all values of ‘using sign_t = enum fmt::v9::sign::type {aka enum fmt::v9::sign::type}’
   sign_t sign : 3;
                 ^
/pytorch/pytorch/third_party/fmt/include/fmt/core.h: In function ‘fmt::v9::detail::float_specs fmt::v9::detail::parse_float_type_spec(const fmt::v9::basic_format_specs<Char>&, ErrorHandler&&) [with ErrorHandler = fmt::v9::detail::error_handler; Char = char]’:
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2818:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
     result.upper = true;
     ^~~~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2820:3: note: here
   case presentation_type::general_lower:
   ^~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2824:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
     result.upper = true;
     ^~~~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2826:3: note: here
   case presentation_type::exp_lower:
   ^~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2831:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
     result.upper = true;
     ^~~~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2833:3: note: here
   case presentation_type::fixed_lower:
   ^~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2838:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
     result.upper = true;
     ^~~~~~
/pytorch/pytorch/third_party/fmt/include/fmt/core.h:2840:3: note: here
   case presentation_type::hexfloat_lower:
   ^~~~
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/thread_name.cpp.o
[ 75%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o
[ 75%] Linking CXX shared library ../lib/libc10.so
[ 75%] Built target c10
Scanning dependencies of target python_copy_files
[ 75%] Built target python_copy_files
Scanning dependencies of target torch_global_deps
[ 75%] Building C object caffe2/CMakeFiles/torch_global_deps.dir/__/torch/csrc/empty.c.o
[ 75%] Linking C shared library ../lib/libtorch_global_deps.so
[ 75%] Built target torch_global_deps
[ 75%] Running C++/Python protocol buffer compiler on /pytorch/pytorch/caffe2/proto/caffe2.proto
/bin/sh: protobuf::protoc: command not found
make[2]: *** [caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/build.make:78: caffe2/proto/caffe2.pb.cc] Error 127
make[1]: *** [CMakeFiles/Makefile2:3404: caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
root@ubuntu:/pytorch/pytorch-build # 
```

### Versions

cmake version: 3.16.3
cross compile toolchain: gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu
pytorch :1.13.0

commmand :cmake -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_TOOLCHAIN_FILE=/pytorch/pytorch/arm_linux_setup.cmake -DUSE_MKLDNN=OFF -DUSE_QNNPACK=OFF -DUSE_PYTORCH_QNNPACK=OFF -DBUILD_TEST=OFF -DUSE_NNPACK=OFF -DCMAKE_BUILD_TYPE:STRING=Release -DPYTHON_EXECUTABLE:PATH=`which python3` -DCMAKE_INSTALL_PREFIX:PATH=../pytorch-install-aarch64 ../pytorch


cc @malfet @seemethere