mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Fix false positive when detecting header-only library presence
This commit is contained in:
parent
babc6726b2
commit
c582d3ff67
@ -1534,7 +1534,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
|
|||||||
if (have_all_pkgs):
|
if (have_all_pkgs):
|
||||||
return
|
return
|
||||||
|
|
||||||
if pkgconfig is not None and not libs and not incs:
|
if pkgconfig is not None and not libs:
|
||||||
# pkg-config is all we can do, abort if it wasn't found.
|
# pkg-config is all we can do, abort if it wasn't found.
|
||||||
if pkg in PkgListGet():
|
if pkg in PkgListGet():
|
||||||
print("%sWARNING:%s Could not locate pkg-config package %s, excluding from build" % (GetColor("red"), GetColor(), pkgconfig))
|
print("%sWARNING:%s Could not locate pkg-config package %s, excluding from build" % (GetColor("red"), GetColor(), pkgconfig))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user