Author Topic: how to set output file name?  (Read 3346 times)

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 49
how to set output file name?
« on: March 08, 2021, 12:40:36 am »
In project/targets options/build targets I can enter an output filename. Which format should I use to have the output filename corresponding to the project name ? Eg if my project is named Test I want the object being named eg. Test.dll. i tried bin\release\$(TARGET_OUTPUT_BASENAME).dll but if I do so the next time I open the project CB freezes and I have to ask windows to abort it the hard way (a bug ?). Thx

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how to set output file name?
« Reply #1 on: March 08, 2021, 01:15:50 am »
Can you provide minimal project which reproduces the freeze?
But I suppose you've created an infinite loop, because TARGET_OUTPUT_BASENAME has the value you've already set :)

Here is the list of all variables: http://wiki.codeblocks.org/index.php/Variable_expansion
I guess you need PROJECT_NAME...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 49
Re: how to set output file name?
« Reply #2 on: March 08, 2021, 11:56:54 am »
Thanks PROJECT_NAME works  :)
Perhaps a check should be made against such recursive situations though...
Sorry but I am quite new and ignored the vars
However it can easily be reproduced with any project it seems