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 ac6886fCopy full SHA for ac6886f
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 add the path in the environment
+ /// variable `DEP_XXX_ROOT`, where `XXX` is replaced with the
280
+ /// uppercased value of `dep`, to the `CMAKE_PREFIX_PATH`
281
+ /// environment variable for the [`build`][Self::build] system
282
+ /// generation step.
283
pub fn register_dep(&mut self, dep: &str) -> &mut Config {
284
self.deps.push(dep.to_string());
285
self
0 commit comments