aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Weißmann <volker.weissmann@gmx.de>2023-08-02 17:28:03 +0200
committerXavier Claessens <xclaesse@gmail.com>2023-08-02 11:33:37 -0400
commit465ad6d261e2733c60c3a066eebabee72f14346a (patch)
tree37a9719ea24f7bf5840238e5e1a92c7c5ec0d02a
parent13f8eba9b63fe5185ba34c2690dffac651d91593 (diff)
downloadmeson-465ad6d261e2733c60c3a066eebabee72f14346a.zip
meson-465ad6d261e2733c60c3a066eebabee72f14346a.tar.gz
meson-465ad6d261e2733c60c3a066eebabee72f14346a.tar.bz2
Fix syntax mistakes in two examples
-rw-r--r--docs/markdown/CMake-module.md2
-rw-r--r--docs/markdown/Release-notes-for-0.51.0.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/markdown/CMake-module.md b/docs/markdown/CMake-module.md
index ceaee0b..f8275c9 100644
--- a/docs/markdown/CMake-module.md
+++ b/docs/markdown/CMake-module.md
@@ -41,7 +41,7 @@ sub_proj = cmake.subproject('libsimple_cmake')
# Fetch the dependency object
cm_lib = sub_proj.dependency('cm_lib')
-executable(exe1, ['sources'], dependencies: [cm_lib])
+executable('exe1', ['sources'], dependencies: [cm_lib])
```
The `subproject` method is almost identical to the normal Meson
diff --git a/docs/markdown/Release-notes-for-0.51.0.md b/docs/markdown/Release-notes-for-0.51.0.md
index da80db2..635fbbd 100644
--- a/docs/markdown/Release-notes-for-0.51.0.md
+++ b/docs/markdown/Release-notes-for-0.51.0.md
@@ -325,7 +325,7 @@ sub_proj = cmake.subproject('libsimple_cmake')
# Fetch the dependency object
cm_lib = sub_proj.dependency('cm_lib')
-executable(exe1, ['sources'], dependencies: [cm_lib])
+executable('exe1', ['sources'], dependencies: [cm_lib])
```
It should be noted that not all projects are guaranteed to work. The