Skip to content

support installing *_importfiles for header-only target #1747

@xq114

Description

@xq114

你在什么场景下需要该功能?

需要为header-only的target导出pkgconfig和cmake的import files

目前会报错error: install failed, pkgconfig_importfiles: only support for library target(testheader)!

描述可能的解决方案

在header-only target的import files中忽略library,只提供include。eigen库可以作为参考(这是一个header-only library)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions