

For protobuf, use: add_subdirectory(path/to/cmake-external-packages/protobuf-v2) Then add packages you want to use with add_subdiretory.
#PROTOBUFF WINDOWS CMAKE INSTALL#
Use git-subtree, git-submodule or just copy this repository contents to your repository subfolder. To compile or install protobuf from source using CMake, see cmake/README.md.
#PROTOBUFF WINDOWS CMAKE DOWNLOAD#
This CMakeLists.txt will download protobuf from protobuf's github releases, extract, and emit cmake targets which you should add reference to with target_link_libraries. In fact, I wrote it because ExternalProject_Add is wrong (because does stuff in build phase instead of generation phase). I am using CMake ver 3.

I want to use CMake for building the project. I hit this exact issue when CircleCI updated their Windows image from CMake 3.15 to CMake. CMake for protobuff-c-rpc project - generating c and python files Asked 1 I am writing a proof of concept project using Google protobuf-c-rpc. cmake -G MSYS Makefiles -DCMAKEBUILDTYPERelease -DCMAKEINSTALLPREFIXC:/OpenPASS. Please, try look to cmake-external-packages project and protobuf-v2 CMakeLists which do the job. on caucycaucy commented on Download and carefully unzip it somewhere else and add a '-mingw' suffix to the directory name. FindProtobuf: Fix usage of protobuf dynamic libraries on Windows. Additional CMake variables have to be set. I found the way to use protobuf v2 with cmake on Windows and build it with your project settings.
