<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" style="word-wrap:break-word">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Doesn't CMAKE_PREFIX_PATH work for you?<br>
-- <br>
Daniel Schepler<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF577394"><font face="Tahoma" color="#000000" size="2"><b>From:</b> CMake [cmake-bounces@cmake.org] on behalf of Michael Jackson [mike.jackson@bluequartz.net]<br>
<b>Sent:</b> Friday, September 04, 2015 10:33 AM<br>
<b>To:</b> CMake list<br>
<b>Subject:</b> Re: [CMake] Protobuf Libraries not found on OS X<br>
</font><br>
</div>
<div></div>
<div>Odd, I built from source and there does not seem to be any way to add a custom search path (akin to QtDir or something like that) for the searching. I added a few lines to the FindProtobuf.cmake file to make it look for "Protobuf_DIR" as an environment
 variable. If I installed it into /usr/local I bit the default paths would find it.
<div><br>
</div>
<div>I guess I could submit the patch as a bug report for the next version of CMake.</div>
<div><br>
</div>
<div>Thanks</div>
<div>Mike Jackson<br>
<div>
<div>On Sep 4, 2015, at 11:53 AM, Nils Guillermin <<a href="mailto:nils.guillermin@gmail.com" target="_blank">nils.guillermin@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>I'm on Mac OS X 10.10.4 and I use protobuf installed through homebrew.<br>
<br>
</div>
Nils<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Sep 3, 2015 at 1:48 PM, 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:0 0 0 .8ex; border-left:1px #ccc 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>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">
http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">
http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">
http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">
http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>