scons: change -I to -isystem for fast=true option in boost.py

This commit is contained in:
loonycyborg 2016-01-04 18:45:12 +03:00
parent a48be105f7
commit b34b289928

View file

@ -70,7 +70,7 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
libname = "boost_" + boost_lib + env.get("boost_suffix", "")
if env["fast"]:
env.AppendUnique(CXXFLAGS = "-I" + boostdir, LIBPATH = [boostlibdir])
env.AppendUnique(CXXFLAGS = ["-isystem", boostdir], LIBPATH = [boostlibdir])
else:
env.AppendUnique(CPPPATH = [boostdir], LIBPATH = [boostlibdir])
if not header_only: