cmake: specify `CMAKE_INSTALL_LICENSEDIR` as a string
Giving it a PATH
type causes CMake to convert relative paths into
absolute paths by prepending the build tree to it. This is not wanted,
so change its type to a STRING
instead.
Same thing as paraview/paraview!5070 (merged).
Fixes: #18266 (closed)
Backport: release