summaryrefslogtreecommitdiff
path: root/modules/fbx/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-04-22 02:18:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-04-22 02:18:44 +0200
commit93b74061387075909d1b4d29b0e5b2924e06f7d7 (patch)
treeae42c0b35498efd5922add1515b0c50f4e671c15 /modules/fbx/SCsub
parentf6d5b2f3c242f08af835891caff32ed6342290a9 (diff)
fbx: Fix include for zlib that broke unbundling
It's possible to link against system zlib on Linux, so we should use system paths.
Diffstat (limited to 'modules/fbx/SCsub')
-rw-r--r--modules/fbx/SCsub3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/fbx/SCsub b/modules/fbx/SCsub
index 84220a66fa..0311fddfee 100644
--- a/modules/fbx/SCsub
+++ b/modules/fbx/SCsub
@@ -8,6 +8,9 @@ env_fbx = env_modules.Clone()
# Make includes relative to the folder path specified here so our includes are clean
env_fbx.Prepend(CPPPATH=["#modules/fbx/"])
+if env["builtin_zlib"]:
+ env_fbx.Prepend(CPPPATH=["#thirdparty/zlib/"])
+
# Godot's own source files
env_fbx.add_source_files(env.modules_sources, "tools/*.cpp")
env_fbx.add_source_files(env.modules_sources, "data/*.cpp")