First of all:
the package is named "mariadb-connector-odbc" with dashes, but installs documentation and licenses to the "<some_path>/mariadb_connector_odbc" with underscores, which is not correct from the packaging POV.
IMHO that should be fixed to use the dashes. If the non GNU/Linux distributions use underscores, there probbably should be if clause.
Now to the core issue:
In Fedora (RHEL, CentOS, ...) the documentation lies in "/usr/share/doc/<pkgname>" and license files are located in "/usr/share/licenses/<pkgname>".
I'd like to have those two paths configurable for that reason.
This way it will default to what is hardcoded now, while granting the freedom to change any of those paths if necessary.
I'm not sure however, how to add those macros to show up with description when "cmake -LAH" is called
Also I'm not sure if you have something like "COMPONENT License", which could be used there.