2013/4/4 Jean-Christophe Fillion-Robin <[email protected]>
> Consider looking at the implementation of PreventInSourceBuilds.cmake in
> ITK
> See
> https://github.com/Kitware/ITK/blob/master/CMake/PreventInSourceBuilds.cmake
>
> May it could be generalized and integrated in CMake itself ?
>
Yes it could but it is not a user-friendly solution, since the macro
1) Does not prevent the creation of CMakeCache.txt nor CMakeFiles dir.
2) Tell the user that he should remove those himself
(and rely on git to do so).
Thus the feature request:
http://public.kitware.com/Bug/view.php?id=6672
Even Brad found it could be "cool":
http://public.kitware.com/Bug/view.php?id=6672#c17606
May be somebody will find time to craft some patch for that...
--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake