Part Number: CCSTUDIO-THEIA
I'm working on a C2000 project that includes a lot of static libraries.
In a few cases, either the main project, or some of the static libraries have dependencies on the same static library which have several different build configurations (debug_type1, debug_type2, .., release_type1, release_type2, ..)
On the main project I can easily set the required build configuration for a particular project dependency, but for the static libraries I need to manually change the required build configuration for a particular project dependency, to match the build configuration set in the main project.
I would have expected that during a cascading build, the @active option, would inhiret it's values from the parent project, but unfortunately it does not.
The @active option appear to only refer to which-ever configuration is set in the GUI at the moment, which makes sense when the project is build independent, but not when it's build as a project dependency - and I guess I understand why.
This means a smarter method is missing, such as an "@inhirit from myproject", where all other projects in the workspace that has a dependency on that library are listed. I believe this would be the most transparent solution, and I would like to propose it as a feature request.
At the moment, the only workaround I can think of, is to use a script in the pre-build stage, that user ccs-server to switch the project to the required build configuration, and then always have all project that have that library as a project dependency to use @active ... it's just not very nice.
For an immediate workaround, what options exists to automatically ensure that all project dependencies across the workspace are targeting the same build configuration for a specific project dependency?