From: ThorstenB <br...@gm...> - 2012-11-16 07:47:58
|
On 16.11.2012 01:52, Pat wrote: >> But none of this explains why SG static >> libraries got installed in lib/i386-linux-gnu >> in the first place. It's the default for distros like Debian/Ubuntu. The idea is to allow libraries for different architectures to be present in the same system at the same time - so you can cross-compile for other architectures, but never mix up libraries. Hence, the architecture name is added to library directory names. See spec for Ubuntu: https://wiki.ubuntu.com/MultiarchSpec The great thing is: you normally don't need to worry about these. The system and CMake does it all for you. When it's necessary to encode such paths into the CMake file manually, then something has already gone wrong before. Also, when you add such paths to CMake manually, it'll stop working for anyone who really has libraries for multiple architectures installed - like for i386-linux-gnu, x86_64-linux-gnu and maybe arm-linux-gnu - a manual CMake hack likely picks the wrong path... cheers, Thorsten |