Fix syntax mistakes in two examples

pull/11833/head
Volker Weißmann 2 years ago committed by Xavier Claessens
parent 13f8eba9b6
commit 465ad6d261
  1. 2
      docs/markdown/CMake-module.md
  2. 2
      docs/markdown/Release-notes-for-0.51.0.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

@ -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

Loading…
Cancel
Save