From ebf5757c59d9bceb953dc531c757e07dcf83c081 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 9 Dec 2023 23:13:01 +0100 Subject: cmake: parse project version This properly sets the project version in projects meson generates from cmake projects. This allows dependency fallbacks to properly check the version constraints in dependency calls when falling back to a cmake subproject. Before this would fail, because the project version was undefined. --- docs/markdown/snippets/cmake-project-version.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/cmake-project-version.md (limited to 'docs') diff --git a/docs/markdown/snippets/cmake-project-version.md b/docs/markdown/snippets/cmake-project-version.md new file mode 100644 index 000000000..0bc120b9f --- /dev/null +++ b/docs/markdown/snippets/cmake-project-version.md @@ -0,0 +1,6 @@ +## Meson now reads the project version of cmake subprojects + +CMake subprojects configured by meson will now have their project +version set to the project version in their CMakeLists.txt. This +allows version constraints to be properly checked when falling back to +a cmake subproject. -- cgit v1.2.3