User forums > Using Code::Blocks
I can't run a command only build target
ollydbg:
Hi, I have a build target named "MakePackage", in this target, I select its type is "command only".
In the pre-build or post-build script, I wrote the command like:
--- Code: ---cmd /c MakePackageRelease.cmd
--- End code ---
With this command, I just copy all the exes and dlls to a specified folder.
I used this for a long time. But with the recent SVN C::B, I see this function does not work, because when I click the "run" button of the target, it will prompt
--- Code: ---[Window Title]
codeblocks.exe
[Content]
You must select a host application to "run" a commands-only target...
[OK]
--- End code ---
Which means I have to specify a host program?
So, I believe this is a regression. :)
ollydbg:
I think this issue is related:
Code::Blocks / Tickets / #1395 Compilergcc
ollydbg:
Please note that the "commands only" type build target has the "executable" option disable, so I can't set a executable of this target.
Miguel Gimenez:
The commits in that ticket are related to the Run button enabled state, not to execution. See my reply in the ticket.
ollydbg:
--- Quote from: Miguel Gimenez on September 16, 2023, 11:48:14 am ---The commits in that ticket are related to the Run button enabled state, not to execution. See my reply in the ticket.
--- End quote ---
Oh, sorry, I think I have made a mistake.
For a commands only target, it can be "build", I mean The commands I wrote in the "pre-build" and "post-build" option, which can be run if I click the "Build" button.
But this kinds of targets can NOT be executed, so the "Run button" get disabled.
That's a normal behavior, and I have made a mistake, I should click the build button, not the run button. Sorry about the noise.
Navigation
[0] Message Index
[#] Next page
Go to full version