diff options
Diffstat (limited to 'docs/markdown/snippets/cmake-prefix-path.md')
| -rw-r--r-- | docs/markdown/snippets/cmake-prefix-path.md | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/markdown/snippets/cmake-prefix-path.md b/docs/markdown/snippets/cmake-prefix-path.md deleted file mode 100644 index 15497b8f2..000000000 --- a/docs/markdown/snippets/cmake-prefix-path.md +++ /dev/null @@ -1,16 +0,0 @@ -## CMake prefix path overrides - -When using pkg-config as a dependency resolver we can pass -`-Dpkg_config_path=$somepath` to extend or overwrite where pkg-config will -search for dependencies. Now cmake can do the same, as long as the dependency -uses a ${Name}Config.cmake file (not a Find{$Name}.cmake file), by passing -`-Dcmake_prefix_path=list,of,paths`. It is important that point this at the -prefix that the dependency is installed into, not the cmake path. - -If you have installed something to `/tmp/dep`, which has a layout like: -``` -/tmp/dep/lib/cmake -/tmp/dep/bin -``` - -then invoke meson as `meson builddir/ -Dcmake_prefix_path=/tmp/dep` |
