The configuration kwarg of the configure_package_config_file() function from the cmake module can now take a dict object, just like the regular configure_file() function.
configuration
configure_package_config_file()
cmake
configure_file()