Skip to content

Commit

Permalink
Be more precise in the description of register_dep (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 authored Feb 10, 2025
1 parent faccc07 commit 0542060
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 0542060

Please sign in to comment.