Skip to content

Commit

Permalink
Be more precise in the description of register_dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Feb 9, 2025
1 parent faccc07 commit ac6886f
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 add the path in the environment
/// variable `DEP_XXX_ROOT`, where `XXX` is replaced with the
/// uppercased value of `dep`, to the `CMAKE_PREFIX_PATH`
/// environment variable for the [`build`][Self::build] system
/// generation step.
pub fn register_dep(&mut self, dep: &str) -> &mut Config {
self.deps.push(dep.to_string());
self
Expand Down

0 comments on commit ac6886f

Please # to comment.