diff options
author | Brad King <brad.king@kitware.com> | 2020-11-03 21:57:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-04 15:08:13 (GMT) |
commit | f511a1c00912f3e1d368a423b07bd1a1ab57fab3 (patch) | |
tree | e4feec49632b94694eb09fbfaef8cc57debf0aec /Tests/RunCMake/ABI/RunCMakeTest.cmake | |
parent | 606b34b3a6eeac1bcd64c274b5407cc2cd6be2bd (diff) | |
download | CMake-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 'Tests/RunCMake/ABI/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/ABI/RunCMakeTest.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/ABI/RunCMakeTest.cmake b/Tests/RunCMake/ABI/RunCMakeTest.cmake new file mode 100644 index 0000000..883b849 --- /dev/null +++ b/Tests/RunCMake/ABI/RunCMakeTest.cmake @@ -0,0 +1,13 @@ +include(RunCMake) + +run_cmake(C) +run_cmake(CXX) + +if(APPLE) + run_cmake(OBJC) + run_cmake(OBJCXX) +endif() + +if(CMake_TEST_CUDA) + run_cmake(CUDA) +endif() |