diff options
Diffstat (limited to 'cmake/opentrack-word-size.cmake')
-rw-r--r-- | cmake/opentrack-word-size.cmake | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cmake/opentrack-word-size.cmake b/cmake/opentrack-word-size.cmake index 12c34066..4ed82e02 100644 --- a/cmake/opentrack-word-size.cmake +++ b/cmake/opentrack-word-size.cmake @@ -1,10 +1,4 @@ -include(CheckTypeSize)
-check_type_size(void* opentrack-word-size BUILTIN_TYPES_ONLY LANGUAGE C)
-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 GREATER 4)
+if(CMAKE_SIZEOF_VOID_P GREATER 4)
set(opentrack-64bit TRUE)
else()
set(opentrack-64bit FALSE)
|