Hi,
When building a project as a dependency of another project, its currently active configuration is built regardless of the main project's settings.
To reproduce, follow these steps:
- Start in a workspace that was freshly created by CCS 5.3. If your workspace was created by a previous CCS version, start in a new workspace.
- Create two new empty executable CCS projects, named proj1 and proj2.
- I assume you have not changed anything, so both projects are presently set to Debug mode.
- In the properties of proj1, Build > Dependencies > Add and select proj2. Set its build configuration to Debug.
- Build proj1. It will build proj2 in Debug, then proj1 in Debug. This is the expected behavior.
- Set proj2 active configuration to Release mode.
- Build proj1. It will build proj2 either in Release mode, or in both modes, when it should have built only Debug.
- Switch proj1 to Release mode. Build. It will build proj2 (in proj2's current mode), even though the dependency setting was only applied to proj1's Debug configuration and so it was not supposed to build any additional projects.
I think these problems also manifest when the workspace was inherited from a previous CCS version but they are less visible and harder to replicate, hence the request in step 1 to start with a fresh WS.
Thanks,
-itay