Qt Creator creates both a debug and a release folder inside the designated debug folder

后端 未结 2 748
北恋
北恋 2021-02-08 12:27

I am using the default build directory in Qt Creator which is something like build-project-blah-blah-Debug. However, when I build my app in debug mode both a

相关标签:
2条回答
  • 2021-02-08 12:32

    I deduced the solution from this answer to the reverse question. In your .pro file, add the following line to prevent the subdirectories being created:

    CONFIG -= debug_and_release debug_and_release_target
    

    This issue only occurs on Windows, not on Unix-based OS's. Windows sets these flags by default, whereas Unix implementations of QT don't. To me it was mainly a problem due to compatibility of my project between both environments.

    0 讨论(0)
  • 2021-02-08 12:52

    You can choose folder for debug and release builds on the projects mode (Ctrl + 5)

    There you have a combo box which says "Edit build configuration", and lets you choose Release or Debug, and then you can edit the build directory of each one

    0 讨论(0)
提交回复
热议问题