How do you run a specific executable based on the build type?
-
How do you get a different executable to run based on the build type?
For example a build release followed by run release should run the build variant executable. Likewise, a build debug followed by run debug should run the debug variant executable.
I can not find an obvious way in the editor to make this happen without having to manually switch which executable I am running, which is error prone.
-
How do you get a different executable to run based on the build type?
For example a build release followed by run release should run the build variant executable. Likewise, a build debug followed by run debug should run the debug variant executable.
I can not find an obvious way in the editor to make this happen without having to manually switch which executable I am running, which is error prone.
-
@johnglen
It should already be doing this? If you set your build type to Release it should build and run that, if you set it to Debug is should do both as that.@JonB It is a meson project using custom commands, and QT will not let me specify a different executable for release and debug. It will only let me manually switch which executable it will run, so I can have build run the debug build and then run run the release executable which is something I do not want done.