CheckTypeSizeOk.cmake 471 Bytes
Newer Older
1 2
enable_language(C)
enable_language(CXX)
3 4 5 6 7 8 9 10 11 12
include(CheckTypeSize)
check_type_size(int SIZEOF_INT)
check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY)
check_type_size(int SIZEOF_INT LANGUAGE C)
check_type_size(int SIZEOF_INT LANGUAGE CXX)
check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY LANGUAGE C)

# Weird but ok... only last value is considered
check_type_size(int SIZEOF_INT BUILTIN_TYPES_ONLY BUILTIN_TYPES_ONLY)
check_type_size(int SIZEOF_INT LANGUAGE C LANGUAGE CXX)