[CMake] Finding out the Endianness of a system at CMake config time
Mike Jackson
mike.jackson at imts.us
Wed Nov 22 11:03:59 EST 2006
I have recently joined a project where I am to do some coding. The
code base is cross platform HPC type code and the original coders
have defined their own little/big endian #defines (L_ENDIAN &
B_ENDIAN). They pass this into the compiler via -DL_ENDIAN during
compiles.
Is there a way to automatically have cmake figure this out for me?
Right now I have an OPTION(....) clause in my CMakeLists.txt file to
select the right value.. which is stupid and error prone but it
worked to boot strap the process for the moment.
Any hints would be appreciated..
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20061122/1ecba37e/attachment.html
More information about the CMake
mailing list