diff options
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)
|