View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014690CMakeCMakepublic2014-01-09 08:452014-06-02 08:38
ReporterArunmozhi 
Assigned ToDaniele E. Domenichelli 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014690: CheckTypeSize doesn't behave as documented in daily build
DescriptionAccording to the documentation of CheckTypeSize ...

If the BUILTIN_TYPES_ONLY option is not given, the macro checks for headers <sys/types.h>, <stdint.h>, and <stddef.h>, and saves results in HAVE_SYS_TYPES_H, HAVE_STDINT_H, and HAVE_STDDEF_H. The type size check automatically includes the available headers, thus supporting checks of types defined in the headers.

...

The above behavior works in all versions of cmake including the current daily build 2.8.12.20140108-gc5c24.

However if there is a CHECK_TYPE_SIZE invocation with BUILTIN_TYPES_ONLY option, further CHECK_TYPE_SIZE without BUILTIN_TYPES_ONLY fails (does not detect/include the required headers <sys/types.h>, <stdint.h>, and <stddef.h>). This is observed in the daily builds (tested on 2.8.12.20140108-gc5c24).


Steps To ReproduceAn example CMakeLists.txt attached.
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (321 bytes) 2014-01-09 08:45 [Show Content]

 Relationships

  Notes
(0034919)
Brad King (manager)
2014-01-09 09:34

This commit is the likely culprit:

 CheckTypeSize: Add support for C++
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=07a2342f [^]

because it changed the argument parsing.
(0034922)
Brad King (manager)
2014-01-10 09:20

CheckTypeSize: Unset temporary variables when done
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8252406c [^]
(0036073)
Robert Maynard (manager)
2014-06-02 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-01-09 08:45 Arunmozhi New Issue
2014-01-09 08:45 Arunmozhi File Added: CMakeLists.txt
2014-01-09 09:34 Brad King Assigned To => Daniele E. Domenichelli
2014-01-09 09:34 Brad King Status new => assigned
2014-01-09 09:34 Brad King Target Version => CMake 3.0
2014-01-09 09:34 Brad King Note Added: 0034919
2014-01-10 09:20 Brad King Note Added: 0034922
2014-01-10 09:20 Brad King Status assigned => resolved
2014-01-10 09:20 Brad King Resolution open => fixed
2014-01-10 09:20 Brad King Fixed in Version => CMake 3.0
2014-06-02 08:38 Robert Maynard Note Added: 0036073
2014-06-02 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team