Skip to content

HAVE vs. HAS in cmake and ifdef #428

@jaykrell

Description

@jaykrell

There is confusion between "HAVE" and "HAS".
Is cmake considered official and supported?

Searching for '_STDINT_H'...
c:\s\zlib\CMakeLists.txt(24):check_include_file(stdint.h HAVE_STDINT_H)
c:\s\zlib\CMakeLists.txt(37):if(HAVE_STDINT_H)
c:\s\zlib\CMakeLists.txt(38): list(APPEND CMAKE_REQUIRED_DEFINITIONS -DHAVE_STDINT_H)
c:\s\zlib\contrib\minizip\ioapi.h(89):#ifdef HAS_STDINT_H
4 occurrence(s) have been found.

and cmake's HAVE_STDDEF_H and HAVE_SYS_TYPES_H appear unused

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions