Re: [CMake] Clearing all cmake files

2008-09-10 Thread Eric Noulard
2008/9/9 Robert Kubrick [EMAIL PROTECTED]: I did not use an out of source build, so that of course would simplify things, but I still think that a command like: cmake erase Would be convenient to clear all cmake generated files and roll-back to the scenario *before* 'cmake .' Yes, I can

Re: [CMake] Clearing all cmake files

2008-09-10 Thread Philip Lowman
On Tue, Sep 9, 2008 at 12:50 PM, Robert Kubrick [EMAIL PROTECTED]wrote: I did not use an out of source build, so that of course would simplify things, but I still think that a command like: cmake erase Would be convenient to clear all cmake generated files and roll-back to the scenario

Re: [CMake] Clearing all cmake files

2008-09-10 Thread Matthew Woehlke
Aleix wrote: I still wonder why cmake does let to build a builddir in a non-empty folder... $ rm CMakeCache.txt $ cmake ../src CMake error: build dir not empty :-) I think it would be impossible to determine if the build dir contains *only* files generated by cmake. (For example, you

[CMake] Clearing all cmake files

2008-09-09 Thread Robert Kubrick
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? ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Mike Jackson
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. With that said CMakeCache.txt is the first obvious

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Robert Kubrick
On Sep 9, 2008, at 10:36 AM, Mike Jackson wrote: 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.

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Mike Jackson
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 Build the command is: rm -rf Build/ (Linux/Unix/OS X) Use Windows Explorer to delete the entire build tree on Windows. Those are the commands. Granted they

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Robert Kubrick
I did not use an out of source build, so that of course would simplify things, but I still think that a command like: cmake erase Would be convenient to clear all cmake generated files and roll-back to the scenario *before* 'cmake .' Yes, I can remove files manually but the user is not

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Mike Jackson
And hence the reason to use an out of source build. That alleviates the problem. Now, just in case you are still new to cmake, here is a subtle FYI about out of source builds. The build directory can be a sub directory of your project. MyProject/ src/ includes/ Build ===

Re: [CMake] Clearing all cmake files

2008-09-09 Thread Aleix
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. I still wonder why cmake does let to build a builddir in a non-empty folder... On Tue, Sep 9, 2008 at 6:50 PM, Robert Kubrick [EMAIL