Skip to content

GTest dependency checking hardcodes /usr #12690

@rossburton

Description

@rossburton

When searching for googletest meson will forcibly look in hard-coded /usr paths:

self.src_dirs = ['/usr/src/gtest/src', '/usr/src/googletest/googletest/src']

This causes problems when you're doing builds in sysroots and such like.

A previous MR to attempt to resolve this was filed (#5919) but closed as there wasn't a clear idea on how to proceed without hardcoding /usr/.

Then again, googletest has had a pkgconfig file since 2017 in release 1.8.1 onwards (google/googletest@8604c4a), so is the non-pkgconfig codepath still actually useful?

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