scons: fix logic error breaking compile on windows

This commit is contained in:
loonycyborg 2016-06-18 23:22:23 +04:00
parent 5870074ab9
commit 35b9d7d5ed

View File

@ -70,7 +70,7 @@ def CheckBoost(context, boost_lib, require_version = None, header_only = False):
header_name = boost_headers.get(boost_lib, boost_lib + ".hpp")
libname = "boost_" + boost_lib + env.get("boost_suffix", "")
if sys.platform != "win32" and not os.path.samefile(boostdir, "/usr/include"):
if sys.platform == "win32" or not os.path.samefile(boostdir, "/usr/include"):
if env["fast"]:
env.AppendUnique(CXXFLAGS = ["-isystem", boostdir], LIBPATH = [boostlibdir])
else: