[CMake] "make superclean" target? (i.e. clear *everything*)
Matthew Woehlke
matthew.woehlke at kitware.com
Thu Apr 4 11:34:15 EDT 2013
On 2013-04-04 11:01, Daniel Carrera wrote:
> On 4 April 2013 12:41, Eric Noulard wrote:
>> Yes I know.
>> By suicidal I mean that the built tool will remove its own file
>> (but not the CMakeLists.txt off course).
>
> I see what you mean. The Makefile is killing itself. It is committing suicide.
>
> Would it be a reasonable idea to delete CMakeCache.txt and maybe even
> CMakeFiles but leaving Makefile intact?
IMHO, probably not; with the cache gone, re-running CMake is not
guaranteed to succeed, and even less to produce the same results as
before. I'd think it would be better to erase the Makefile that probably
is no longer useful/correct.
--
Matthew
More information about the CMake
mailing list