`PUBLIC_HEADER` does not automatically append `CMAKE_CURRENT_SOURCE_DIR`
This might be an issue more specific to install()
, but when specifying a PUBLIC_HEADER
, it does not automatically prepend CMAKE_CURRENT_SOURCE_DIR
. I guess there might be an ambiguity when having to specify if it should get from a generated file in CMAKE_CURRENT_BINARY_DIR
, but I would say that if the path is relative, it is more natural to assume the developer intends it to be relative to CMAKE_CURRENT_SOURCE_DIR
.
Of course this might create some backwards-compatibility problems. But depending on the actual logic that is implemented, it might be an actual bug. E.g. if the path is with respect to the current directory that calls install()
then that is a definite bug.