diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-09 16:32:12 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-09 21:58:12 +0200 |
commit | 51aaa15bda0e955e45da014ca7720d038219eeff (patch) | |
tree | 366e47ee0c92e4e98854317cf513ddfdf3815d63 /docs/markdown/snippets/cmake.md | |
parent | f7e657629fe2e779c9485112eb31632db77db9e7 (diff) | |
download | meson-51aaa15bda0e955e45da014ca7720d038219eeff.tar.gz |
Update everything for release 0.49.00.49.0
Diffstat (limited to 'docs/markdown/snippets/cmake.md')
-rw-r--r-- | docs/markdown/snippets/cmake.md | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/docs/markdown/snippets/cmake.md b/docs/markdown/snippets/cmake.md deleted file mode 100644 index 8848c7b70..000000000 --- a/docs/markdown/snippets/cmake.md +++ /dev/null @@ -1,19 +0,0 @@ -## CMake `find_package` dependency backend - -Meson can now use the CMake `find_package` ecosystem to -detect dependencies. Both the old-style `<NAME>_LIBRARIES` -variables as well as imported targets are supported. Meson -can automatically guess the correct CMake target in most -cases but it is also possible to manually specify a target -with the `modules` property. - -```meson -# Implicitly uses CMake as a fallback and guesses a target -dep1 = dependency('KF5TextEditor') - -# Manually specify one or more CMake targets to use -dep2 = dependency('ZLIB', method : 'cmake', modules : ['ZLIB::ZLIB']) -``` - -CMake is automatically used after `pkg-config` fails when -no `method` (or `auto`) was provided in the dependency options. |