TestBigEndian

From Get docs
Cmake/docs/3.21/module/testbigendian


TestBigEndian

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(<var>)

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

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