MantisBT - CMake
View Issue Details
0011685CMakeModulespublic2011-01-12 04:302011-01-31 16:02
Evgeny Kapun 
Brad King 
normalminoralways
closednot fixable 
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011685: CHECK_SYMBOL_EXISTS doesn't find enum constants
Sometimes 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.
No tags attached.
related to 0010044closed Brad King check_function_exists( fdatasync HAVE_FDATASYNC ) erroneously sets HAVE_FDATASYNC to 1 
Issue History
2011-01-12 04:30Evgeny KapunNew Issue
2011-01-12 09:01Brad KingNote Added: 0024616
2011-01-12 09:02Brad KingAssigned To => Brad King
2011-01-12 09:02Brad KingStatusnew => assigned
2011-01-12 09:03Brad KingNote Added: 0024617
2011-01-12 09:03Brad KingStatusassigned => closed
2011-01-12 09:03Brad KingResolutionopen => not fixable
2011-01-17 12:55Brad KingRelationship addedrelated to 0010044
2011-01-31 16:02David ColeFixed in Version => CMake 2.8.4
2011-01-31 16:02David ColeTarget Version => CMake 2.8.4

Notes
(0024616)
Brad King   
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   
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.