Skip to content

find_package cannot find Boost #5687

@Mohammadabd

Description

@Mohammadabd

I have built osrm-backend successfully on my mac machine, but when CMake example I get multiple warning related to boost such as

Target "osrm-example" links to target "Boost::regex" but the target was not found.  Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

and then when running build it throws error and fails

ld: library not found for -lBoost::regex

How to get around this issue? I have boost already installed. Thanks

ls /usr/local/Cellar/boost/
1.72.0

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