Menu

#933 Incorrect default build target in Build Options

Next_Nightly
fixed
None
Bug_Report
2020-03-26
2020-03-24
vid
No

The 'Build options' dialog, when opened, by default selects the build target based on index of current build target, as selected via toolbar or menu (Build->Select target). For example, if I select the third option in Build->Selet target, then the third build target in 'Build Options' is selected. This logic ignores fact, that 'Build->Select target' doesn't necessarily display all targets that 'Build options' dialog has. It displays only a subset that's valid for current OS (or maybe Compiler installed).

For example if your project has 4 targets:
linux-debug, GCC compiler
windows-debug, MSVC compiler
linux-release, GCC compiler
windows-release, MSVC compiler

On linux, the 'Build->Selet target' offers only two targets, linux-debug and linux-release. You select the second one, eg. linux-release. Now, when you open 'Build Options' dialog, the second build target is selected, eg. 'windows-debug'.

This happens on C::B nightly, svn-r11979.

Discussion

  • Teodor Petrov

    Teodor Petrov - 2020-03-24

    Can you post a sample project which could be used to reproduce the problem? I think only the cbp file would be enough, no need for the sources.

     
  • vid

    vid - 2020-03-24

    Here

     
  • Teodor Petrov

    Teodor Petrov - 2020-03-24

    Thanks, I can reproduce this.

     
  • Teodor Petrov

    Teodor Petrov - 2020-03-26
    • status: open --> fixed
    • assigned_to: Teodor Petrov
    • Type: Undefined --> Bug_Report
    • Milestone: Undefined --> Next_Nightly
     
  • Teodor Petrov

    Teodor Petrov - 2020-03-26

    Fixed in trunk/master.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.