diff options
Diffstat (limited to '3rdParty/LibNATPMP/SConscript')
-rw-r--r-- | 3rdParty/LibNATPMP/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/3rdParty/LibNATPMP/SConscript b/3rdParty/LibNATPMP/SConscript index 273c2d2..2a58242 100644 --- a/3rdParty/LibNATPMP/SConscript +++ b/3rdParty/LibNATPMP/SConscript @@ -1,5 +1,7 @@ Import(["env", "conf_env"]) +import os + if env.get("LIBNATPMP_BUNDLED", False) : ################################################################################ @@ -12,7 +14,7 @@ if env.get("LIBNATPMP_BUNDLED", False) : "LIBPATH": [Dir(".")], "INTERNAL_CPPDEFINES": ["STATICLIB"], } - if env["CC"] in ("clang", "gcc") : + if os.path.basename(env["CC"]) in ("clang", "gcc") : env["LIBNATPMP_FLAGS"].update({"CPPFLAGS": ["-isystem" "3rdParty/LibNATPMP/src/libnatpmp"]}) else : env["LIBNATPMP_FLAGS"].update({"CPPPATH": [Dir("src/libnatpmp")]}) |