On Wed, Nov 26, 2008 at 5:41 PM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
On Nov 26, 2008, at 6:12 PM, Robert Dailey wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Nov 26, 2008 at 1:15 PM, Javier Gonzalez &lt;<a href="mailto:javierggt@yahoo.com" target="_blank">javierggt@yahoo.com</a>&gt; wrote:<br>
Robert Dailey wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; My application currently has a dependency on the APR library, which<br>
&gt; uses linux make scripts to build it. Since I&#39;m using CMake for my own<br>
&gt; project, how can I setup APR to build using CMake? The APR libraries<br>
&gt; must be built before my application. I&#39;m not sure how to handle this<br>
&gt; situation. It would be nice to convert APR to use CMake via some tool<br>
&gt; of some sort.<br>
<br>
Check out the EXECUTE_PROCESS command in the documentation. That should<br>
work.<br>
<br>
Is this the recommended way to handle this issue? What would you guys recommend? Should I provide precompiled binaries for all platforms in version control so I don&#39;t have to worry about making CMake build APR, or would you recommend complex CMake logic to handle calling EXECUTE_PROCESS() for APR on all platforms? Either way you look at it, it looks like a nightmare.<br>

</blockquote>
<br></div></div>
Well, it depends on how much time and energy you have to devote to APR. If APR isn&#39;t too complicated and you are quick with CMake you can always create a CMake Build system for APR. I ended up doing this for my own project dependencies (HDF5, expat, tiff) but then again I had the luxury of the time to do that.<br>

<br>
&nbsp;I think EXECUTE_PROCESS is about your only choice. Precompiled binaries work if you can manage the various build configurations that your users will need.<br>
<br>
I just took a look at APR (<a href="http://apr.apache.org" target="_blank">http://apr.apache.org</a>) and I don&#39;t think creating a CMake based build system is probably in your time horizon.. :-)</blockquote></div><br>
Are you saying creating CMakeLists files for APR would be too time consuming? If so, why do you say this?<br>