As reported here:
forum entry
If you're open to process improvements, perhaps an error could be added to Code::Blocks if the command line --target doesn't match any of the build target names in the project. Currently it displays "Nothing to be done (all items are up-to-date)." which is not the most helpful thing when trying to debug human errors.
The code is there (compilergcc.cpp:2659)
Probably the dependencies list (deps) is empty and the loop with the previous code is not executed, I have no time to check this now.
Last edit: Miguel Gimenez 2021-12-19
He is probably doing batch building, in that case the message is generated but goes nowhere.