summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ABI/C.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ABI/C.cmake')
-rw-r--r--Tests/RunCMake/ABI/C.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/ABI/C.cmake b/Tests/RunCMake/ABI/C.cmake
new file mode 100644
index 0000000..51f5a34
--- /dev/null
+++ b/Tests/RunCMake/ABI/C.cmake
@@ -0,0 +1,4 @@
+enable_language(C)
+if(NOT CMAKE_C_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;")
+ message(FATAL_ERROR "CMAKE_C_BYTE_ORDER has unexpected value '${CMAKE_C_BYTE_ORDER}'")
+endif()