summaryrefslogtreecommitdiff
path: root/Modules/CMakeCUDACompilerABI.cu
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-11-03 16:57:16 -0500
committerBrad King <brad.king@kitware.com>2020-11-04 10:08:13 -0500
commitf511a1c00912f3e1d368a423b07bd1a1ab57fab3 (patch)
treee4feec49632b94694eb09fbfaef8cc57debf0aec /Modules/CMakeCUDACompilerABI.cu
parent606b34b3a6eeac1bcd64c274b5407cc2cd6be2bd (diff)
downloadcmake-f511a1c00912f3e1d368a423b07bd1a1ab57fab3.tar.gz
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 'Modules/CMakeCUDACompilerABI.cu')
-rw-r--r--Modules/CMakeCUDACompilerABI.cu2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompilerABI.cu b/Modules/CMakeCUDACompilerABI.cu
index 702a7c53a2..449a079445 100644
--- a/Modules/CMakeCUDACompilerABI.cu
+++ b/Modules/CMakeCUDACompilerABI.cu
@@ -8,6 +8,8 @@ int main(int argc, char* argv[])
{
int require = 0;
require += info_sizeof_dptr[argc];
+ require += info_byte_order_big_endian[argc];
+ require += info_byte_order_little_endian[argc];
#if defined(ABI_ID)
require += info_abi[argc];
#endif