Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you specify a custom build step in Qt Creator that executes when make completes?

Tags:

qt-creator

I like Qt Creator to notify me when a compile is finished, so I went to the Projects Pane > Build > Build Steps > Add Build Step. However, I find that this custom build step is only executed when make exits successfully. If I have any compile errors then my custom step isn't executed, and I'm not notified.

How do you add a custom build step that executes even if you have compile errors?

like image 258
Cory Klein Avatar asked Nov 03 '22 19:11

Cory Klein


1 Answers

It's a bit old question but I think I can share my solution:

what I'd do is:

  1. disable make step
  2. add custom step with:
    • command: usr/bin/make
    • argument: ; yourNotifyingScript
    • directory: %{buildDir}

Using ; will cause yourNotifyingScript run no matter if make passed or failed.

like image 155
prajmus Avatar answered Nov 08 '22 06:11

prajmus