diff options
author | Brad King <brad.king@kitware.com> | 2020-11-06 13:33:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-11-06 13:33:03 (GMT) |
commit | 412ce907a2099b8e65052edcc1f6dbc031b57cdd (patch) | |
tree | c19cb708fa33be75c3dc167b241ad5c84a786c55 /Tests/RunCMake/ABI | |
parent | ffda92d4bf6113d74a51ba6a97daabe56f0a3867 (diff) | |
download | CMake-412ce907a2099b8e65052edcc1f6dbc031b57cdd.zip CMake-412ce907a2099b8e65052edcc1f6dbc031b57cdd.tar.gz CMake-412ce907a2099b8e65052edcc1f6dbc031b57cdd.tar.bz2 |
Tests: Prepare RunCMake.ABI cases to run more checks
Diffstat (limited to 'Tests/RunCMake/ABI')
-rw-r--r-- | Tests/RunCMake/ABI/C.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/ABI/CUDA.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/ABI/CXX.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/ABI/OBJC.cmake | 5 | ||||
-rw-r--r-- | Tests/RunCMake/ABI/OBJCXX.cmake | 5 |
5 files changed, 20 insertions, 5 deletions
diff --git a/Tests/RunCMake/ABI/C.cmake b/Tests/RunCMake/ABI/C.cmake index 51f5a34..a90c766 100644 --- a/Tests/RunCMake/ABI/C.cmake +++ b/Tests/RunCMake/ABI/C.cmake @@ -1,4 +1,7 @@ enable_language(C) -if(NOT CMAKE_C_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") +if(NOT CMAKE_C_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$") + if(CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") + return() + endif() message(FATAL_ERROR "CMAKE_C_BYTE_ORDER has unexpected value '${CMAKE_C_BYTE_ORDER}'") endif() diff --git a/Tests/RunCMake/ABI/CUDA.cmake b/Tests/RunCMake/ABI/CUDA.cmake index 1a40843..d1e06f7 100644 --- a/Tests/RunCMake/ABI/CUDA.cmake +++ b/Tests/RunCMake/ABI/CUDA.cmake @@ -1,4 +1,7 @@ enable_language(CUDA) -if(NOT CMAKE_CUDA_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") +if(NOT CMAKE_CUDA_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$") + if(CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") + return() + endif() message(FATAL_ERROR "CMAKE_CUDA_BYTE_ORDER has unexpected value '${CMAKE_CUDA_BYTE_ORDER}'") endif() diff --git a/Tests/RunCMake/ABI/CXX.cmake b/Tests/RunCMake/ABI/CXX.cmake index 7dc6f4a..4fd9a0d 100644 --- a/Tests/RunCMake/ABI/CXX.cmake +++ b/Tests/RunCMake/ABI/CXX.cmake @@ -1,4 +1,7 @@ enable_language(CXX) -if(NOT CMAKE_CXX_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") +if(NOT CMAKE_CXX_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$") + if(CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") + return() + endif() message(FATAL_ERROR "CMAKE_CXX_BYTE_ORDER has unexpected value '${CMAKE_CXX_BYTE_ORDER}'") endif() diff --git a/Tests/RunCMake/ABI/OBJC.cmake b/Tests/RunCMake/ABI/OBJC.cmake index 9caccee..623b12e 100644 --- a/Tests/RunCMake/ABI/OBJC.cmake +++ b/Tests/RunCMake/ABI/OBJC.cmake @@ -1,4 +1,7 @@ enable_language(OBJC) -if(NOT CMAKE_OBJC_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") +if(NOT CMAKE_OBJC_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$") + if(CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") + return() + endif() message(FATAL_ERROR "CMAKE_OBJC_BYTE_ORDER has unexpected value '${CMAKE_OBJC_BYTE_ORDER}'") endif() diff --git a/Tests/RunCMake/ABI/OBJCXX.cmake b/Tests/RunCMake/ABI/OBJCXX.cmake index 8ddefc0..de09a6a 100644 --- a/Tests/RunCMake/ABI/OBJCXX.cmake +++ b/Tests/RunCMake/ABI/OBJCXX.cmake @@ -1,4 +1,7 @@ enable_language(OBJCXX) -if(NOT CMAKE_OBJCXX_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$" AND NOT CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") +if(NOT CMAKE_OBJCXX_BYTE_ORDER MATCHES "^(BIG_ENDIAN|LITTLE_ENDIAN)$") + if(CMAKE_OSX_ARCHITECTURES MATCHES ";ppc|ppc;") + return() + endif() message(FATAL_ERROR "CMAKE_OBJCXX_BYTE_ORDER has unexpected value '${CMAKE_OBJCXX_BYTE_ORDER}'") endif() |