From 6c63e5e33919270bf8e7acc0954b3ac2c7489ce6 Mon Sep 17 00:00:00 2001 From: Shaheen Gandhi Date: Sun, 16 Feb 2020 09:57:40 -0800 Subject: [PATCH] [imtui-sys] Link imtui-sys to ncurses --- imtui-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imtui-sys/build.rs b/imtui-sys/build.rs index 1a9692f..796d2b3 100644 --- a/imtui-sys/build.rs +++ b/imtui-sys/build.rs @@ -1,6 +1,8 @@ use std::io; fn main() -> io::Result<()> { + println!("cargo:rerun-if-env-changed=PKG_CONFIG_PATH"); + let mut build = cc::Build::new(); let files = vec![ "third-party/imtui/src/imtui-impl-text.cpp", @@ -13,5 +15,7 @@ fn main() -> io::Result<()> { .flag("-std=c++17") .files(files.iter()) .compile("libimtui.a"); + + println!("cargo:rustc-link-lib=ncurses"); Ok(()) }