Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,11 @@ impl Config {
/// Registers a dependency for this compilation on the native library built
/// by Cargo previously.
///
/// This registration will modify the `CMAKE_PREFIX_PATH` environment
/// variable for the build system generation step.
/// This registration will update the `CMAKE_PREFIX_PATH` environment
/// variable for the [`build`][Self::build] system generation step. The
/// path will be updated to include the content of the environment
/// variable `DEP_XXX_ROOT`, where `XXX` is replaced with the uppercased
/// value of `dep` (if that variable exists).
pub fn register_dep(&mut self, dep: &str) -> &mut Config {
self.deps.push(dep.to_string());
self
Expand Down