Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is an “out-of-source” build?

build source
0
10 Posted

What is an “out-of-source” build?

0

When your build generates files, they have to go somewhere. An in-source build puts them in your source tree. An out-of-source build puts them in a completely separate directory, so that your source tree is unchanged. In the first example, an in-place build is performed, i.e., the binaries are placed in the same directory as the source code.

0
10

When your build generates files, they have to go somewhere. An in-source build puts them in your source tree. An out-of-source build puts them in a completely separate directory, so that your source tree is unchanged. In the first example, an in-place build is performed, i.e., the binaries are placed in the same directory as the source code.

0

CMake, you have the option of creating an ‘out of source’ build. This means that all files associated with the build will be created in a directory that is ‘outside’ the source tree. Note that it is strongly recommended to build vtk and vtkSNL related projects out of source. The main argument to support this: the source directories do not get “polluted” with all the build files. These can be numerous, between all the cmake-generated, custom builds (Windows), object files, binaries, executables, project files (Windows), etc.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123