From 5a913e4b663b60d50ae6c38dc5cf3f1c67f26aae Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Jul 2016 05:44:15 +0200 Subject: cmake: allow only detected word size of 4 or 8 --- cmake/opentrack-word-size.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/opentrack-word-size.cmake') 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) -- cgit v1.2.3