CMAKE__BYTE_ORDER

From Get docs
Cmake/docs/3.21/variable/cmake lang byte order


CMAKE__BYTE_ORDER

New in version 3.20.


Byte order of <LANG> compiler target architecture, if known. If defined and not empty, the value is one of:

BIG_ENDIAN
The target architecture is Big Endian.
LITTLE_ENDIAN
The target architecture is Little Endian.

This is defined for languages C, CXX, OBJC, OBJCXX, and CUDA.

If CMAKE_OSX_ARCHITECTURES specifies multiple architectures, the value of CMAKE_<LANG>_BYTE_ORDER is non-empty only if all architectures share the same byte order.

© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/variable/CMAKE_LANG_BYTE_ORDER.html