Skip to content

Use PATHS vs HINTS carefully in FindZeek.cmake's find_package() #120

@ckreibich

Description

@ckreibich

Per a Slack conversation it looks like the way we use HINTS in find_package(), including fixed path guesses like /usr/local/zeek/bin, can have the undesired effect of overriding system-level defaults for locating a program — here, picking up zeek-config straight from the user's PATH environment.

The docs suggest that we should use HINTS for paths derived from other variables (here, relative to ${ZEEK_ROOT_DIR}), while we should provide absolute paths via PATHS, which will come last in the resolution order.

There are several other uses of HINTS in our cmake tree that we should review while we're at it.

cmake gurus, feel free to chime in...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions