IT lexicon › Programming › Out-of-source build

Out-of-source build

Programming På svenska → Updated: 2026-11-16

Build method where object files and intermediate artifacts live in a directory separate from source code.

Out-of-source builds (also called vcore builds) place all generated files—object files, libraries, binaries—in a separate build directory, typically build/, while source code remains untouched. This prevents the source tree from being cluttered with binaries and enables multiple builds of the same source with different configurations (debug, release, ARM-optimized, etc).

Modern CMake and Autotools are designed for out-of-source builds and make it trivial: mkdir build && cd build && cmake .. && make. This is now considered best practice.

← Back to the lexicon