<div dir="ltr"><div>Yes but not all cmake projects which I build are mine. So i would still have to modify a CMakeLists from someone else, which is in my opinion a bad thing. <br></div>When you have the possiblity to inject cmake stuff without modifying the project itself you can implement a clean separation between project dependencies and how/where to find those.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 1, 2013 at 5:28 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; +1 for updating cmake-gui to work equally to ccmake<br>
&gt;<br>
&gt; But my opinion regarding CMAKE_MODULE_PATH is different. The problem is that<br>
&gt; alot of the default find-modules don&#39;t work because the dependency is not in<br>
&gt; the location where the find-module expects it. Currently there are only two<br>
&gt; workarounds:<br>
&gt; - Change the find-module directly so it works in the local environment<br>
&gt; - Change the CMakeLists.txt of the project - which is bad because it&#39;s just<br>
&gt; a LOCAL problem and the CMakeLists should be mostly independent of the<br>
&gt; environment.<br>
&gt;<br>
&gt; With the command-line option it&#39;s possible to setup a custom cmake-gui batch<br>
&gt; file once per computer which sets e.g. the CMAKE_MODULE_PATH to a directory<br>
&gt; with customized find modules. If one doesn&#39;t want to use custom find modules<br>
&gt; that&#39;s fine too but I think everyone should have the option to place<br>
&gt; dependent libraries wherever she/he wants.<br>
&gt;<br>
<br>
</div>For these kind of things I use environment variables in my<br>
CMakeLists.txt. If the environment variable is set I use it. If not I<br>
use the default behavior.<br>
<span class="HOEnZb"><font color="#888888"><br>
John<br>
</font></span></blockquote></div><br></div>