I want to use the protobuf package in my C++ project, and I have downloaded the binary executable of protoc from github, on the WIndows platform. I according to the contents of the https://github.com/protocolbuffers/protobuf/blob/main/src/README.md, The protobuf package is installed by running vcpkg install protobuf:x64-windows. But I used the CMake find_package directive in vs2022 to look up the protobuf package and couldn’t find it.
I tried to re-download protobuf with vcpkg install protobuf:x64-windows and it said it was installed.
download protobuf
I added the configuration for CMAKE_TOOLCHAIN_FILE to CMakePresets.json.
CMakePresets.json settings
I tried to clear the cache and reconfigure, but CMAKE still couldn’t find protobuf packages.
Shawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.