Find Protobuf: How to customize the path to protobuf instead of default /usr/local
Hello.
When I used find_package(Protobuf)
, cmake will help me find the cmake in /usr/local.
However, if I want to customize the path setting the root like
set(Protobuf_ROOT, third_party)
before find_package(Protobuf)
and require cmake to find protobuf at path third_party/
How can I make this happen?
Edited by Renjie Zhang