check_type_size assigns HAVE_${VARIABLE} the sizeof value not a boolean
When using check_type_size()
to detect the existence of a type, e.g. check_type_size("long long" HAVE_LONG_LONG)
, the replacement variable @HAVE_LONG_LONG@
is not a boolean 1
but instead the actual sizeof(long long)
.
The documentation says: Check if the type exists and determine its size. On return, HAVE_${VARIABLE} holds the existence of the type
.
Existence of the type
implies a boolean value, like you get with #cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
, which results in #define HAVE_SYS_TYPES_H 1
.
Is this a (documentation) bug or intentional behaviour?