diff --git a/src/build_targets.rs b/src/build_targets.rs index a95e589..eb10d8d 100644 --- a/src/build_targets.rs +++ b/src/build_targets.rs @@ -68,7 +68,7 @@ impl BuildTargets { use_meson_naming_convention: bool, ) -> anyhow::Result { let pc = targetdir.join(format!("{}.pc", &capi_config.pkg_config.filename)); - let include = if capi_config.header.enabled { + let include = if capi_config.header.enabled && capi_config.header.generation { let mut header_name = PathBuf::from(&capi_config.header.name); header_name.set_extension("h"); Some(targetdir.join(&header_name))