On Sun, Aug 1, 2010 at 6:17 PM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/8/1 Dennis Schridde &lt;<a href="mailto:devurandom@gmx.net">devurandom@gmx.net</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hello!<br>
&gt;<br>
&gt; I just started experimenting with CPack. According to the docs and<br>
&gt; code it is to be used like this:<br>
&gt;&gt; set(CPACK_... ...)<br>
&gt;&gt;<br>
&gt; include(CPack)<br>
&gt;<br>
&gt; This, however, does not allow making use of the defaults<br>
&gt; present in CPack.cmake. (Most notably CPACK_SOURCE_IGNORE_FILES.)<br>
&gt; I had to<br>
&gt; copy the default value of that variable out of CPack.cmake into my own<br>
&gt; CMakeLists.txt, which does not seem very clean.<br>
&gt;<br>
&gt; Can you add a way of<br>
&gt; configuring CPack that allows appending or modifying default values?<br>
&gt; What<br>
&gt; comes to my mind is a semantic like this:<br>
&gt;&gt; include(CPack)<br>
&gt;&gt; set(CPACK_...<br>
&gt; &quot;${CPACK_...} ...&quot;)<br>
&gt;&gt; cpack_config()<br>
<br>
</div></div>I think this is an interesting idea.<br>
May be it&#39;s worth a feature request on the tracker:<br>
<a href="http://public.kitware.com/Bug/my_view_page.php" target="_blank">http://public.kitware.com/Bug/my_view_page.php</a><br>
<br>
This would even be better with a patch proposal :-)<br>
<br>
My personal point of view with your idea is that<br>
since we most most probably want to maintain backward compatibility<br>
it would even be better if we can do<br>
<br>
1 - set(CPACK_...<br>
2 - include(CPack)<br>
3 - set(CPACK_...)<br>
4 - cpack_update_config() or cpack_reconfig()<br>
<br>
that way 1, 3 and 4 are optional just as today.<br>
3 and 4 would bring what you suggest.<br></blockquote><div><br></div><div><br></div><div>You can already do this today with:</div><div class="gmail_quote"><br></div>1 - set(CPACK_...<br>2 - include(CPack)<br>3 - set(CPACK_...)<br>
4 - include(CPack)</div><div class="gmail_quote"><br></div><div class="gmail_quote">Simply including CPack a second time will configure the files according to the new values set in step 3. No need for a bug tracker entry, no need to do any update or re-config. Simply including CPack a second time will call configure_file for the two files of interest: CPackConfig.cmake and CPackSourceConfig.cmake...</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">HTH,</div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
--<br>
Erk<br>
Membre de l&#39;April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>