summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrea Pappacoda <andrea@pappacoda.it>2022-02-03 19:04:57 +0100
committerEli Schwartz <eschwartz93@gmail.com>2022-02-27 11:45:26 -0500
commitfcca265035a92eac2773f85a79a8ad142a9bb795 (patch)
treede508a4109db5e48feeb1ace7b0789a763fe295a /docs
parentc42a3fd2fbefce7797766f81f14b89ef0e4c5dcc (diff)
downloadmeson-fcca265035a92eac2773f85a79a8ad142a9bb795.tar.gz
cmake: configure_package_config_file can now take a dict
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/CMake-module.md1
-rw-r--r--docs/markdown/snippets/cmake_configure_package_config_dict.md5
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/CMake-module.md b/docs/markdown/CMake-module.md
index 8e6c4e939..a5c0c7e0e 100644
--- a/docs/markdown/CMake-module.md
+++ b/docs/markdown/CMake-module.md
@@ -262,6 +262,7 @@ the `configuration` parameter.
* `input`: the template file where that will be treated for variable substitutions contained in `configuration`.
* `install_dir`: optional installation directory, it defaults to `$(libdir)/cmake/$(name)`.
* `configuration`: a `configuration_data` object that will be used for variable substitution in the template file.
+ *Since 0.62.0* it can take a dictionary instead.
Example:
diff --git a/docs/markdown/snippets/cmake_configure_package_config_dict.md b/docs/markdown/snippets/cmake_configure_package_config_dict.md
new file mode 100644
index 000000000..253a88741
--- /dev/null
+++ b/docs/markdown/snippets/cmake_configure_package_config_dict.md
@@ -0,0 +1,5 @@
+## cmake.configure_package_config_file can now take a dict
+
+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.