gitversion
gitversion copied to clipboard
Headers got mixed up with library include_headers
The headers generated for the git version information got inserted into every cmake step. The only place where they are required is the BUILD_INTERFACE. This interferes with the idea of include_headers and private_headers for cmake produced libraries. By setting the BUILD_INTERFACE generator expression solves this issue.