Made boost autodetection look for boost in /sw, /sw/local and C:\Boost.
This commit is contained in:
parent
f6b43f3209
commit
bda080bd63
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ from glob import glob
|
|||
import re
|
||||
|
||||
def find_boost(env):
|
||||
prefixes = [env["prefix"]]
|
||||
prefixes = [env["prefix"], "C:\\Boost"]
|
||||
include = find_include(prefixes, "boost/config.hpp", "", not env["host"])
|
||||
if include:
|
||||
prefix, includefile = include[0]
|
||||
|
|
|
@ -14,5 +14,5 @@ def restore_env(env, backup):
|
|||
|
||||
def find_include(prefixes, include_file, include_subdir, default_prefixes = True):
|
||||
if default_prefixes:
|
||||
prefixes = ["/usr", "/usr/local"] + prefixes
|
||||
prefixes = ["/usr", "/usr/local", "/sw", "/sw/local"] + prefixes
|
||||
return [(prefix, include) for prefix in prefixes for include in glob(join(prefix, "include", include_subdir, include_file))]
|
||||
|
|
Loading…
Add table
Reference in a new issue