On Wed, Dec 11, 2013 at 11:44 PM, Jacob Avraham
wrote:
> Hi,
> I'm running on a 32bit Linux and I'd like to build from the same source,
> libraries complied and linked as 32bit and 64bit.
> They should be installed in /usr/lib and /usr/lib64.
> How do I go about and do that?
Personally I've never tried to build a 64-bit app/lib on a 32-bit
machine, only the other way around. Looking at the packages available
for my favourite Linux distribution (ArchLinux) there doesn't seem to
be a compiler that could go the way you want. It should be possible
though, you just need to get your hands on a compiler:
http://stackoverflow.com/questions/7582218/gcc-compile-a-64-bit-binary-on-32-bit-platform
So, the easiest way in CMake would be to create different folders and
then generate makefiles/ninjafiles/whatever with different CFLAGS
settings.
/M
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake