Suppose I have a project named foo, with sources under /foo/src. Also suppose that at some point in the past, someone ran cmake /foo/src, so there are build files there.
Now, I want to perform a build of foo, in /foo/build. But if I cd /foo/build; cmake /foo/src - it treats /foo/src as the build directory, and configures and generates that build files there rather than in the current directory.
Questions:
- What is the minimal set of files in /foo/srcto delete in order for cmake to configure and generate build files in/foo/build?
- Can I force cmake to use /foo/buildwithout deleting anything from/foo/src?
