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:
Daniele E. Domenichelli 2014-01-09 15:57:07 +01:00 committed by Brad King
parent a0eb52c10c
commit 8252406cd6
1 changed files with 2 additions and 0 deletions

View File

@ -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)