Search⌘ K
AI Features

Disabling in-source builds

Understand why disabling in-source builds is recommended to keep your source directory clean and safe from accidental changes. Explore practical ways to configure out-of-source builds in CMake, including supported methods and potential risks of undocumented features. This lesson helps you optimize project setup by maintaining a tidy build structure.

It is always recommended to specify the build path as out-of-source. This not only allows for a cleaner build tree and a simpler .gitignore file, but it also decreases the chances we'll accidentally overwrite or delete any source files. Disabling the in-source build can also be a good solution; however, there is little documented information available on that. ...