blob: 622888d43007e26f0472f1a7b23cedd4a794a1f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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 EQUAL 8)
set(opentrack-64bit TRUE)
else()
set(opentrack-64bit FALSE)
endif()
|