embree: Allow building against system library on Linux

This commit is contained in:
Rémi Verschelde
2021-04-22 02:03:43 +02:00
parent a86f5462cf
commit b266cc2315
3 changed files with 96 additions and 86 deletions

View File

@ -310,6 +310,10 @@ def configure(env):
if not env["builtin_pcre2"]:
env.ParseConfig("pkg-config libpcre2-32 --cflags --libs")
if not env["builtin_embree"]:
# No pkgconfig file so far, hardcode expected lib name.
env.Append(LIBS=["embree3"])
## Flags
if os.system("pkg-config --exists alsa") == 0: # 0 means found