Skip to content

Commit

Permalink
opencv-calibrate: rebuild if cpp file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
astraw committed Jan 2, 2021
1 parent a02b443 commit 7ae8fe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opencv-calibrate/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ fn infer_static(name: &str) -> bool {
}

fn main() {
println!("cargo:rerun-if-changed=src/opencv-calibrate.cpp");

println!("cargo:rerun-if-env-changed=OPENCV_LIB_DIR");
println!("cargo:rerun-if-env-changed=OPENCV_VERSION");
println!("cargo:rerun-if-env-changed=OPENCV_INCLUDE_DIR");
Expand Down

0 comments on commit 7ae8fe7

Please sign in to comment.