CheckTypeSize: Unset temporary variables when done (#14690)
When the macro is invoked multiple times, the parsing variables were not unset and therefore used for all the following calls.
This commit is contained in:
parent
a0eb52c10c
commit
8252406cd6
|
@ -222,6 +222,8 @@ macro(CHECK_TYPE_SIZE TYPE VARIABLE)
|
|||
check_include_file(stdint.h HAVE_STDINT_H)
|
||||
check_include_file(stddef.h HAVE_STDDEF_H)
|
||||
endif()
|
||||
unset(_CHECK_TYPE_SIZE_BUILTIN_TYPES_ONLY)
|
||||
unset(_CHECK_TYPE_SIZE_LANGUAGE)
|
||||
|
||||
# Compute or load the size or size map.
|
||||
set(${VARIABLE}_KEYS)
|
||||
|
|
Loading…
Reference in New Issue