diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 05:44:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:17:26 +0200 |
commit | 5a913e4b663b60d50ae6c38dc5cf3f1c67f26aae (patch) | |
tree | 4a6d301fce633f96efe247b7265ce07dea4e334e /cmake | |
parent | ccb7f5167a07d5a886722f7d64d0f2b550a7a5a0 (diff) |
cmake: allow only detected word size of 4 or 8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-word-size.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/opentrack-word-size.cmake b/cmake/opentrack-word-size.cmake index 19a854ed..622888d4 100644 --- a/cmake/opentrack-word-size.cmake +++ b/cmake/opentrack-word-size.cmake @@ -1,7 +1,7 @@ include(CheckTypeSize)
check_type_size(void* opentrack-word-size BUILTIN_TYPES_ONLY LANGUAGE C)
-if(opentrack-word-size LESS 4)
- message(FATAL_ERROR "word size '${opentrack-word-size}' either misdetected or really less than 4")
+if(NOT ((opentrack-word-size EQUAL 4) OR (opentrack-word-size EQUAL 8)))
+ message(FATAL_ERROR "word size '${opentrack-word-size}' either misdetected or really not 4 or 8")
endif()
set(opentrack-word-size ${opentrack-word-size})
if(opentrack-word-size EQUAL 8)
|