diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-10-04 22:19:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-04 22:19:07 +0300 |
commit | 2d65472c725f18b343aee00bf91b9ac98c08b95f (patch) | |
tree | 530a0d6ffee4ee96e875302cbeba660c93056d41 /docs/markdown/CMake-module.md | |
parent | 75dd9fb67f793c687fa45744f3b276e35c87ca09 (diff) | |
parent | b672ebca886dd6dc9b0f775eb769764750fd302c (diff) | |
download | meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.zip meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.gz meson-2d65472c725f18b343aee00bf91b9ac98c08b95f.tar.bz2 |
Merge pull request #8960 from mensinda/yamlDoc
Reference Manual 2.0
Diffstat (limited to 'docs/markdown/CMake-module.md')
-rw-r--r-- | docs/markdown/CMake-module.md | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/markdown/CMake-module.md b/docs/markdown/CMake-module.md index b82227d..ed43f9d 100644 --- a/docs/markdown/CMake-module.md +++ b/docs/markdown/CMake-module.md @@ -115,9 +115,8 @@ See [the CMake options object](#cmake-options-object) for a complete reference of all supported functions. The CMake configuration options object is very similar to the -[configuration data -object](Reference-manual.md#configuration-data-object) object returned -by [`configuration_data`](Reference-manual.md#configuration_data). It +[[@cfg_data]] object] object returned +by [[configuration_data]]. It is generated by the `subproject_options` function All configuration options have to be set *before* the subproject is @@ -138,8 +137,8 @@ and supports the following methods: - `dependency(target)` returns a dependency object for any CMake target. The `include_type` kwarg *(new in 0.56.0)* controls the include type of the returned dependency object similar to the same kwarg in the - [`dependency()`](Reference-manual.md#dependency) function. - - `include_directories(target)` returns a Meson `include_directories()` + [[dependency]] function. + - `include_directories(target)` returns a Meson [[@inc]] object for the specified target. Using this function is not necessary if the dependency object is used. - `target(target)` returns the raw build target. @@ -160,7 +159,7 @@ following methods are supported: - `add_cmake_defines({'opt1': val1, ...})` add additional CMake commandline defines - `set_override_option(opt, val)` set specific [build options](Build-options.md) for targets. This will effectively add `opt=val` to the `override_options` - array of the [build target](Reference-manual.md#executable) + array of the [[build_target]] - `set_install(bool)` override wether targets should be installed or not - `append_compile_args(lang, arg1, ...)` append compile flags for a specific language to the targets |