mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
Use #[cfg(feature=...)] instead of env-var
This commit is contained in:
parent
fca87575fd
commit
a36fb757fd
@ -49,7 +49,8 @@ fn main() -> io::Result<()> {
|
||||
}
|
||||
|
||||
// Freetype font rasterizer feature
|
||||
if std::env::var_os("CARGO_FEATURE_FREETYPE").is_some() {
|
||||
#[cfg(feature = "feature")]
|
||||
{
|
||||
let freetype = pkg_config::Config::new().find("freetype2").unwrap();
|
||||
for include in freetype.include_paths.iter() {
|
||||
build.include(include);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user