scons: compare paths in a different way to avoid error about /usr/include on macos
This commit is contained in:
parent
e24115088a
commit
4b536bb0bc
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
# vi: syntax=python:et:ts=4
|
||||
from config_check_utils import find_include
|
||||
from os.path import join, dirname, basename
|
||||
import sys, os.path
|
||||
from os.path import join, dirname, basename, normpath
|
||||
import sys
|
||||
from glob import glob
|
||||
import re
|
||||
|
||||
|
@ -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" or not os.path.samefile(boostdir, "/usr/include"):
|
||||
if sys.platform == "win32" or normpath(boostdir) != "/usr/include":
|
||||
if env["fast"]:
|
||||
env.AppendUnique(CXXFLAGS = ["-isystem", boostdir], LIBPATH = [boostlibdir])
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue