[CMake] PowerPC endian definition

Brad King brad.king at kitware.com
Tue Mar 29 08:43:48 EST 2005


Joy Vincent wrote:
> Does CMAKE have an endian definition for PowerPC?  If so, what is it?

CMake provides the appropriate test but you have to ask for it:

INCLUDE(TestBigEndian)
TEST_BIG_ENDIAN(MY_BIG_ENDIAN)

Then the CMake variable "MY_BIG_ENDIAN" will be set to 1 on big endian 
systems and 0 on little endian systems.

-Brad


More information about the CMake mailing list