Merge pull request #112030 from twrightsman/use-pkgconf-recast

Use pkg-config for recast flags
This commit is contained in:
Thaddeus Crews 2025-10-27 10:01:39 -05:00
commit 73bc7fd3b7
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -307,9 +307,7 @@ def configure(env: "SConsEnvironment"):
env.ParseConfig("pkg-config libpcre2-32 --cflags --libs")
if not env["builtin_recastnavigation"]:
# No pkgconfig file so far, hardcode default paths.
env.Prepend(CPPPATH=["/usr/include/recastnavigation"])
env.Append(LIBS=["Recast"])
env.ParseConfig("pkg-config recastnavigation --cflags --libs")
if not env["builtin_embree"] and env["arch"] in ["x86_64", "arm64"]:
# No pkgconfig file so far, hardcode expected lib name.