View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011685CMakeModulespublic2011-01-12 04:302011-01-31 16:02
ReporterEvgeny Kapun 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionnot fixable 
PlatformOSOS Version
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011685: CHECK_SYMBOL_EXISTS doesn't find enum constants
DescriptionSometimes header files use enum constants instead of defines for numeric constants:
    enum {SOMETHING = 0x123};
instead of
    #define SOMETHING 0x123
However, it looks like CHECK_SYMBOL_EXISTS thinks symbols defined this way doesn't exist.
TagsNo tags attached.
Attached Files

 Relationships
related to 0010044closedBrad King check_function_exists( fdatasync HAVE_FDATASYNC ) erroneously sets HAVE_FDATASYNC to 1 

  Notes
(0024616)
Brad King (manager)
2011-01-12 09:01

The check does not work for types either. We cannot change the behavior of the check without breaking compatibility with existing calls to it. I've updated the documentation to be more clear about the behavior:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=840f9c05 [^]
(0024617)
Brad King (manager)
2011-01-12 09:03

Closing as not fixable because the behavior of the check cannot be changed, but the documentation update is still a "fix" in some sense.

 Issue History
Date Modified Username Field Change
2011-01-12 04:30 Evgeny Kapun New Issue
2011-01-12 09:01 Brad King Note Added: 0024616
2011-01-12 09:02 Brad King Assigned To => Brad King
2011-01-12 09:02 Brad King Status new => assigned
2011-01-12 09:03 Brad King Note Added: 0024617
2011-01-12 09:03 Brad King Status assigned => closed
2011-01-12 09:03 Brad King Resolution open => not fixable
2011-01-17 12:55 Brad King Relationship added related to 0010044
2011-01-31 16:02 David Cole Fixed in Version => CMake 2.8.4
2011-01-31 16:02 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team