1

I have a project with a "source" folder and a "build" folder. Every time I change something in CMake that is requiring reconfiguration, I have to manually delete contents of the build folder. I was curious to know if there is something like this:

cmake clean

Is it possible to delete all the content within a build folder in CMake? If yes, how?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Amani
  • 16,245
  • 29
  • 103
  • 153
  • @ruslo: I actually meant a way to put such kind of commands within CMakeLists.txt file and then run something like "cmake clean" from the shell. – Amani Jul 04 '14 at 19:01
  • 4
    possible duplicate of [Looking for a 'cmake clean' command to clear up cmake output](http://stackoverflow.com/questions/9680420/looking-for-a-cmake-clean-command-to-clear-up-cmake-output) – Kamiccolo Jul 04 '14 at 20:38
  • 1
    @Kamiccolo: I have checked the link you gave and sure it is, thanks. – Amani Jul 04 '14 at 20:56

0 Answers0