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

Unsupported header-only libraries when using 'find' API #31

@MrPointer

Description

@MrPointer

Currently there's no support for header-only libraries, especially when using the find_library API.
The reason for this is that the find_library fails if it doesn't finds any source files, however, that's always the case for header-only libraries, and can be marked as "false-positive".

Solution would be simply to pass an option to the function - HEADER_ONLY, which will hint the framework to ignore sources.

Edit: CMake can't compile nor link header-only libraries, and must use the INTERFACE keyword instead. This leads to a far more complicated solution, which will probably require a separate function.

Metadata

Metadata

Assignees

Labels

bugPotential bug in code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions