This one may be a bit strange. I have a solution in Visual Studio 2010 with three C++ projects. Two libraries and one executable application. Two configurations. In one configuration, I need the executable application to have a project dependency on one library, in the other configuration I need the executable application to have a project dependency on other library.
With specifics, there’s a Direct3D9 implementation in the first library and an OpenGL implementation in the second library. The third project is a test harness that uses the same interface for both, the only difference is which library it links to. Two configurations exist in the test harness project, one for each implementation. I can not set the test harness project to depend on each implementation library individually based on active configuration.
How can I make the project dependencies configuration-specific?
Is the C++ project format msbuild? If so, you should just be able to put a condition on the reference. Reference both projects and then edit the project file and add a condition on each one. This is how it would work in a C# project, not sure if c++ is the same: