Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

[pkgconfig] cotire doesn't fully support cmake function FindPkgConfig #186

@JackBoosY

Description

@JackBoosY

When using pkg_check_modules, CMAKE_MINIMUM_REQUIRED_VERSION must be set greater than or equal to 3.1 to allow cmake to automatically add CMAKE_PREFIX_PATH to PKG_CONFIG_PATH so that pkg-config can be called to find .pc files.
However, the minimum cmake version requirement for cotire is 2.8.12, which will cause this setting to fail.

See code:
https://github.com/Kitware/CMake/blob/master/Modules/FindPkgConfig.cmake#L185-L188
https://github.com/Kitware/CMake/blob/master/Modules/FindPkgConfig.cmake#L383-L387

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