On 04/04/13 15:34, Eric Noulard wrote: > CMake cannot currently do that and it does not seem wise > to ask for that feature. > You may search the mailing list for this discussion topic and you'll find > many answers. > > The only [reasonable] option is to do out-of-source build, > then you know for sure that you can throw away the build tree. > > Safely avoiding accidental in-source build is a feature request: > http://public.kitware.com/Bug/view.php?id=6672
That would work even better for me... > Another option which is unrelated to CMake in order to clean-up a source > tree > is to use a VCS which may be able to remove any non versioned file easily. > (see e.g. git clean) That works as well, but you need to pay really good attention if you have some unversioned files in your source tree (for example because you didn't commit them yet) Cheers, Daniele -- 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
