Skip to content

Commit

Permalink
change windows boost order
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Apr 29, 2010
1 parent 1387990 commit 0b2132d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SConstruct
Expand Up @@ -553,10 +553,6 @@ elif "win32" == os.sys.platform:
env['ENV'] = dict(os.environ)

def find_boost():
if os.path.exists( "C:/boost" ):
return "C:/boost"
if os.path.exists( "/boost" ):
return "/boost"
for x in ('', ' (x86)'):
boostDir = "C:/Program Files" + x + "/boost/latest"
if os.path.exists( boostDir ):
Expand All @@ -566,6 +562,10 @@ elif "win32" == os.sys.platform:
boostDir = "C:/Program Files" + x + "/Boost/boost_1_" + str(bv) + extra
if os.path.exists( boostDir ):
return boostDir
if os.path.exists( "C:/boost" ):
return "C:/boost"
if os.path.exists( "/boost" ):
return "/boost"
return None

boostDir = find_boost()
Expand Down

0 comments on commit 0b2132d

Please sign in to comment.