summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_LANG_BYTE_ORDER.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-03 21:57:16 (GMT)
committerBrad King <brad.king@kitware.com>2020-11-04 15:08:13 (GMT)
commitf511a1c00912f3e1d368a423b07bd1a1ab57fab3 (patch)
treee4feec49632b94694eb09fbfaef8cc57debf0aec /Help/variable/CMAKE_LANG_BYTE_ORDER.rst
parent606b34b3a6eeac1bcd64c274b5407cc2cd6be2bd (diff)
downloadCMake-f511a1c00912f3e1d368a423b07bd1a1ab57fab3.zip
CMake-f511a1c00912f3e1d368a423b07bd1a1ab57fab3.tar.gz
CMake-f511a1c00912f3e1d368a423b07bd1a1ab57fab3.tar.bz2
CMakeDetermineCompilerABI: Detect byte order as part of check
We already detect `sizeof(void*)`. Detect the byte order as part of the same check. Issue: #21392
Diffstat (limited to 'Help/variable/CMAKE_LANG_BYTE_ORDER.rst')
-rw-r--r--Help/variable/CMAKE_LANG_BYTE_ORDER.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_LANG_BYTE_ORDER.rst b/Help/variable/CMAKE_LANG_BYTE_ORDER.rst
new file mode 100644
index 0000000..78f0ae6
--- /dev/null
+++ b/Help/variable/CMAKE_LANG_BYTE_ORDER.rst
@@ -0,0 +1,20 @@
+CMAKE_<LANG>_BYTE_ORDER
+-----------------------
+
+.. versionadded:: 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 :variable:`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.