Congratulations to our 2022 Qt Champions!

qmake force target recompile

  • I'm having an issue in my project where the application version does not properly update unless the entire project is clean built. The version is injected into the project via main.cpp through a .pri definition and main.cpp is a member of a much smaller sub project. Is there an easy way to specify in the .pro encapsulating my main.cpp that either the main.cpp target (or slighlty less optimally the entire containing .pro) must always be rebuilt/recompiled even when no change has been made to the main.cpp file?

Log in to reply