Skip to content
Ruslan Baratov edited this page Aug 25, 2016 · 2 revisions
hunter_add_package(Protobuf)
find_package(Protobuf CONFIG REQUIRED)
target_link_libraries(... Protobuf::libprotobuf)

Mixing toolchains

Example of mixing host and target toolchains in one CMake step (e.g. build protoc executable for OSX host and use it to build libprotobuf for Android target):

Clone this wiki locally