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