mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Use the new pkgconfig API
This commit is contained in:
+1
-2
@@ -14,8 +14,7 @@ fn build_pkgconfig() -> bool {
|
||||
|
||||
#[cfg(feature="pkg-config")]
|
||||
fn build_pkgconfig() -> bool {
|
||||
let opts = pkg_config::default_options("sdl2");
|
||||
if pkg_config::find_library_opts("sdl2", &opts).is_err() {
|
||||
if pkg_config::find_library("sdl2").is_err() {
|
||||
panic!("Could not find SDL2 via pkgconfig");
|
||||
}
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user