<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 3 September 2015 at 19:48, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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:<br>
<br>
find_package(Protobuf REQUIRED)<br>
<br>
<br>
but when configuring I get the usual<br>
<br>
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>
Please set them or make sure they are set and tested correctly in the CMake files:<br>
PROTOBUF_LIBRARY (ADVANCED)<br>
<br>
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.<br>
<br>
---<br>
Mike Jackson<br>
<br>
--</blockquote><div><br></div>Which version of Protobuf did you compile? if it's the last version (3.x alpha or beta) then it is not compatible with the currently provided findprotobuf module.<div>See comments in this issue: <a href="http://public.kitware.com/Bug/view.php?id=14833">http://public.kitware.com/Bug/view.php?id=14833</a></div><div>And the related ticket: <a href="https://github.com/google/protobuf/issues/578">https://github.com/google/protobuf/issues/578</a></div><div><br></div><div> </div></div></div></div>