<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/4 Jean-Christophe Fillion-Robin <span dir="ltr"><<a href="mailto:jchris.fillionr@kitware.com" target="_blank">jchris.fillionr@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Consider looking at the implementation of PreventInSourceBuilds.cmake in ITK<div>See <a href="https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake" target="_blank">https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake</a></div>
<div><br></div><div>May it could be generalized and integrated in CMake itself ?</div></div></blockquote><div><br></div><div>Yes it could but it is not a user-friendly solution, since the macro<br></div><div> 1) Does not prevent the creation of CMakeCache.txt nor CMakeFiles dir.<br>
</div><div> 2) Tell the user that he should remove those himself<br></div><div> (and rely on git to do so).<br></div><div><br></div><div>Thus the feature request:<br><a href="http://public.kitware.com/Bug/view.php?id=6672">http://public.kitware.com/Bug/view.php?id=6672</a><br>
</div><div><br>Even Brad found it could be "cool":<br></div><div><a href="http://public.kitware.com/Bug/view.php?id=6672#c17606">http://public.kitware.com/Bug/view.php?id=6672#c17606</a><br></div></div><br></div>
<div class="gmail_extra">May be somebody will find time to craft some patch for that...<br><br>-- <br>Erk<br>Le gouvernement représentatif n'est pas la démocratie -- <a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a>
</div></div>