TestBigEndian — CMake 4.0.2 Documentation (original) (raw)

Deprecated since version 3.20: Supserseded by the CMAKE__BYTE_ORDER variable.

Check if the target architecture is big endian or little endian.

test_big_endian

test_big_endian()

Stores in variable <var> either 1 or 0 indicating whether the target architecture is big or little endian.