<div dir="ltr"><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small">Hello fellow cmake enthusiasts.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small">

<br></div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small">Beginning with a recent CMake update,  find_package( Boost ... ) seems to be broken.</div><div class="gmail_default" style="font-family:&#39;trebuchet ms&#39;,sans-serif;font-size:small">

<br></div><div class="gmail_default"><font face="trebuchet ms, sans-serif">Specifically, if I run ccmake, the first configure (press &quot;c&quot;) finds the boost libraries, but sets &quot;</font><span style="font-family:arial;font-size:small">Boost_DIR&quot; to &quot;</span>Boost_DIR-NOTFOUND&quot;.  This has been the case for many releases of cmake, so I typically ignore that.  The second configure (press &quot;c&quot; again), results in all of the boost libraries disappearing, and an error being raised.</div>

<div class="gmail_default"><br></div><div class="gmail_default">This also occurs when running cmake (rather than ccmake).  The first time I run cmake, things work fine. If I run it again, boost suddenly is not found and an error is raised.</div>

<div class="gmail_default"><br></div><div class="gmail_default">This occurs on the following cmake versions/platforms that I have tested:</div><div class="gmail_default"><ul><li>2.8.11.2 (on debian with boost in /usr)<br>

</li><li>2.8.12 (on mac with boost in /usr/local)</li></ul><div>It does NOT occur on a few other systems I have access to:</div><div><ul><li>2.8.10.1 (on ubuntu with boost in /usr)</li><li>2.8.11.2 (on mac with boost in /opt/local)  -- note same cmake version as the one that breaks on debian.</li>

</ul><div>If I set the environmental variable CMAKE_PREFIX_PATH to include the location of boost, it also fixes the problem.  But this isn&#39;t a great solution in general.</div></div><div><br></div><div>Has anyone else seen this problem?  Is there a known fix/patch?</div>

<div><br></div><div>Thanks,</div><div><br></div><div>James</div></div>
</div>