Fixed scons crash when no boost_suffix is specified.

This commit is contained in:
Sergey Popov 2008-06-25 07:43:35 +00:00
parent c307ee8dbd
commit 7e8c345745

View file

@ -9,7 +9,7 @@ def find_boost(env):
prefix, includefile = include[0]
env["boostdir"] = join(prefix, "include")
env["boostlibdir"] = join(prefix, "lib")
if not env["boost_suffix"]:
if not env.get("boost_suffix"):
if glob(join(prefix, "lib", "libboost_*-mt.*")):
env["boost_suffix"] = "-mt"
else: