Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Shadow Build



  • Hello,
    What is the difference between building with shadow build checked and unchecking shadow build? Can testcases be built with checking the option of shadow build?


  • Lifetime Qt Champion

    @Anita The difference is that if shadow build is activated you will get a build directory outside of your project source directory where all build artefacts will be (such as your executable). This has several advantages:

    • Your source tree is not polluted with build artefacts (especially useful when using CVS)
    • You can build for different targets with different configurations without destroying your other builds (each configuration will have its own build directory)
    • You can easily do a complete clean rebuild: simply delete build directory and build

    Tests work with shadow build also.


Log in to reply