diff options
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r-- | libssh2-sys/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index 3489a21..6025703 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -17,6 +17,11 @@ fn main() { return } + if !Path::new("libssh2").exists() { + let _ = Command::new("git").args(&["submodule", "update", "--init"]) + .status(); + } + let mut cfg = cmake::Config::new("libssh2"); let target = env::var("TARGET").unwrap(); |