You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting targets is to generate configuration files which used by find_package(). However, msgpack_cpp is a header-only library that cannot be processed by find_package(), so there is no need to export targets.
Providing a package configuration file with an exported target for header-only libraries is stil possible through INTERFACE libraries. (and provides for easy use of the library: finding correct include directory (if not installed to standard system prefix or include directories), propagate transitive dependencies, setting compiler options, etc...):
Activity
redboltz commentedon Jul 14, 2020
Thanks you for reporting the issue. @ygj6, could you check this?
ygj6 commentedon Jul 16, 2020
Exporting targets is to generate configuration files which used by
find_package(). However, msgpack_cpp is aheader-onlylibrary that cannot be processed byfind_package(), so there is no need to export targets.wnts commentedon Jul 22, 2020
Providing a package configuration file with an exported target for header-only libraries is stil possible through INTERFACE libraries. (and provides for easy use of the library: finding correct include directory (if not installed to standard system prefix or include directories), propagate transitive dependencies, setting compiler options, etc...):
Usage:
I will set up a draft pull request with a preliminary proposal.
Add package configuration file to CPP version.