Skip to content

Commit 4a45b77

Browse files
authored
Merge pull request #48 from stephaneyfx/master
Properly format DEP_XXX_ROOT
2 parents 2750291 + 45c0181 commit 4a45b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ impl Config {
297297
// Add all our dependencies to our cmake paths
298298
let mut cmake_prefix_path = Vec::new();
299299
for dep in &self.deps {
300+
let dep = dep.to_uppercase().replace('-', "_");
300301
if let Some(root) = env::var_os(&format!("DEP_{}_ROOT", dep)) {
301302
cmake_prefix_path.push(PathBuf::from(root));
302303
}

0 commit comments

Comments
 (0)