<div dir="ltr">This is not possible because you might have more build directories and might not want to delete them all. plus the builddirs are not linked to srcdirs.<br><br>I still wonder why cmake does let to build a builddir in a non-empty folder...<br>
<br><div class="gmail_quote">On Tue, Sep 9, 2008 at 6:50 PM, Robert Kubrick <span dir="ltr">&lt;<a href="mailto:robertkubrick@gmail.com">robertkubrick@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I did not use an out of source build, so that of course would simplify things, but I still think that a command like:<br>
<br>
cmake erase<br>
<br>
Would be convenient to clear all cmake generated files and roll-back to the scenario *before* &#39;cmake .&#39; Yes, I can remove files manually but the user is not supposed to know exactly which files cmake generates. Different versions might change generated files or add hidden files.<div>
<div></div><div class="Wj3C7c"><br>
<br>
On Sep 9, 2008, at 11:08 AM, Mike Jackson wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am going to assume then that you DID in fact use an out of source build for your project. Assuming that build directory is called &quot;Build&quot; the command is:<br>
<br>
rm -rf Build/ &nbsp;(Linux/Unix/OS X)<br>
Use Windows Explorer to delete the entire build tree on Windows.<br>
<br>
Those are the commands.<br>
<br>
Granted they are not the most obvious but they do work. If you have suggestions let&#39;s hear them..<br>
<br>
---<br>
Mike Jackson - Principal Software Engineer<br>
<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
<br>
<br>
<br>
<br>
On Sep 9, 2008, at 10:42 AM, Robert Kubrick wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On Sep 9, 2008, at 10:36 AM, Mike Jackson wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
If you used an out of source build then you can simply delete the build directory. If you did NOT use an out-of-source build then you are going to have to hand pick through your source directories to find everything that does not belong.<br>

<br>
With that said CMakeCache.txt is the first obvious choice for deletion. Next comes CMakeFiles and CMakeTemp. Not sure about anything else.<br>
<br>
Also, CMakeLists.txt is the _project_ file. Deleting this file is the same as deleting the .sln on windows, the xcode project file on OS X or the main Makefile on Linux/Unix. Are you sure you really want to remove CMakeLists.txt file?<br>

</blockquote>
<br>
No you&#39;re right, the CMakeLists.txt is the only file I need to keep. In facts I store that under source control.<br>
<br>
I think it would be useful to have a command to clobber the whole cmake hierarchy for when you need to prepare a distribution, change the compiler settings or clear some conflicts in the build tree. It does happen, especially during the project initial setup.<br>

<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
_________________________________________________<br>
| Mike Jackson - Principal Software Engineer &nbsp; &nbsp; &nbsp;|<br>
| BlueQuartz Software &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
| <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br>
| <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|<br>
---------------------------------------------------<br>
<br>
On Sep 9, 2008, at 9:55 AM, Robert Kubrick wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was wondering if there is a standard command to clear all cmake files, including CMakeLists.txt, CMakeCache.txt, the CMakeFiles directory and cmake_install.cmake?<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote>
<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><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></div>