[CMake] Protobuf Libraries not found on OS X

Michael Jackson mike.jackson at bluequartz.net
Thu Sep 3 13:48:50 EDT 2015


I have compiled the Protocol Buffer library on OS X and I am using the following CMake code to try and find the compiled libraries:

find_package(Protobuf REQUIRED)


but when configuring I get the usual

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PROTOBUF_LIBRARY (ADVANCED)

Looking at the FindProtobuf.cmake file that came with CMake 3.3.0 it looks like the module would ONLY work with MSVC built Protobuf libraries as the specific paths that are searched for are Visual Studio specific. Is this the correct behavior? Does anyone else use Protobuffers on OS X? I am thinking of rolling my on FindProtobuf.cmake file to have cmake look in more places. 

---
Mike Jackson



More information about the CMake mailing list