views:

392

answers:

0

On a project we are working on there is an SQLite.DLL file that we are linking which we need to link the correct version (32 or 64 bit) depending on the host operating system. If we link to the 32 bit version it will not run on a 64 bit system, and vice versa. Thus, how can we create a configuration that will cause the system to build the correct binary based on the host operating system?

The SQLite dll that is being linked is not our primary solution file but one our project is dependant on.

I tried adding a x64 project configuration for this sub project, and setting the reference to the 64 bit dll, but that appears to effect both the All CPU configuration, and the x64 configuration. Any ideas?