As the topic, if there were some virtual targets, the active target item in compileroptions dialog tree would not match the current active build target of the current project.
And, I just modified one line in void CompilerGCC::OnProjectCompilerOptions(cb_unused wxCommandEvent& event):
target = m_pProject->GetBuildTarget(targetName);
->
target = m_pProject->GetBuildTarget(currentProject->GetActiveBuildTarget());
and avoid such inconvenient.
I'm really not understand what the problem is.
Can you give an example? Such as you have several targets, such as "A", "B" and "C", and you have a virtual target like "VA", which contains "A" and "B", now how to reproduce this bug?
This issue was fixed in [r12614] (2021-12-29).
Related
Commit: [r12614]