We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
register_dep
1 parent faccc07 commit 0542060Copy full SHA for 0542060
src/lib.rs
@@ -275,8 +275,11 @@ impl Config {
275
/// Registers a dependency for this compilation on the native library built
276
/// by Cargo previously.
277
///
278
- /// This registration will modify the `CMAKE_PREFIX_PATH` environment
279
- /// 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
280
+ /// path will be updated to include the content of the environment
281
+ /// variable `DEP_XXX_ROOT`, where `XXX` is replaced with the uppercased
282
+ /// value of `dep` (if that variable exists).
283
pub fn register_dep(&mut self, dep: &str) -> &mut Config {
284
self.deps.push(dep.to_string());
285
self
0 commit comments