<p>As is typical when I'm out of town, I can't connect to my BSD build slave (I'm looking forward to the day where I'm forced to actually come up with a more stable and reliable build server configuration...).  I took a look through the offerings of CMake, and there's no <code>find_package</code> script for <code>execinfo</code>, so what you've written seems to be the best option.  The only change I'd make is that variable name <code>execinfo</code> to <code>EXECINFO_LIBRARY</code>, but that's only for the sake of making it look more like the rest of the CMake code.</p>

<p>If you want to try that and test it, then (assuming it works, which it should) push it, feel free.  I saw some threads where people were having trouble getting execinfo to work on BSD, so if you want to write a quick test program to trigger a <code>Log::Assert()</code> call too, that would be nice (if not, I'll handle it when I get home a week from now or so).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/423#issuecomment-84161772">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOA16_Ac4ZjGUYT1IdPrDQyoEOjAks5n3IzpgaJpZM4DyK4A.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/423#issuecomment-84161772"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>