diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2014-01-09 14:57:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-01-10 14:16:30 (GMT) |
commit | 8252406cd6dccb1c62541bb9ea209b4618d9c1f7 (patch) | |
tree | ef00aa5d475f3872fb0dc6b1c3f69d1a79c31a7e /Modules | |
parent | a0eb52c10c759f4492642d912a8fc70c802ad6a0 (diff) | |
download | CMake-8252406cd6dccb1c62541bb9ea209b4618d9c1f7.zip CMake-8252406cd6dccb1c62541bb9ea209b4618d9c1f7.tar.gz CMake-8252406cd6dccb1c62541bb9ea209b4618d9c1f7.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CheckTypeSize.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckTypeSize.cmake b/Modules/CheckTypeSize.cmake index a9efae4..ec28d8b 100644 --- a/Modules/CheckTypeSize.cmake +++ b/Modules/CheckTypeSize.cmake @@ -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) |