csnake-org / CSnake

Python CMake wrapper
Other
15 stars 6 forks source link

Not all projects that are checked in "Select Projects" are configured. #77

Open msteghofer opened 12 years ago

msteghofer commented 12 years ago

In the following case: projectA.AddProjects([projectB], dependency=False) projectB.AddProjects([projectC], dependency=False)

If projectA is the selected instance in CSnake, then projectA, projectB and projectC appear in the "Select Projects" tree. But even if projectC is selected, it is only configured/compiled, if projectB is selected, too. That shouldn't be the case. Everything that is selected in the "Select Projects" tab should be compiled, everything else confuses the user.

msteghofer commented 12 years ago

The reason for this behaviour is that the dependency mechanism stops the recursive search of dependent projects at projects that are not selected. This avoids the compilation of projects that are not needed because there is no need to compile the dependencies of deselected projects. But projects that are explicitly selected by the user should be an exception to that rule.