Skip to content

CMake find_package requires CONFIG mode #24771

@mkruskal-google

Description

@mkruskal-google

The FindProtobuf module has shipped with cmake since version 3.6, but it is no longer compatible with our cmake setup.

If you use module mode of find_package by typing something like:

find_package(Protobuf)

You will end up with a bad configuration and a broken build. To get this to work you must use config mode like:

find_package(Protobuf CONFIG)

which will use the cmake configs we ship with our package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakekeep openkeep inactive issues open for janitor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions