Handle case of Boost not found.

pull/15/head
Jussi Pakkanen 12 years ago
parent 9186d7c6a6
commit 8281179888
  1. 6
      dependencies.py

@ -219,7 +219,11 @@ class BoostDependency(Dependency):
return self.version
def detect_version(self):
ifile = open(os.path.join(self.incdir, 'version.hpp'))
try:
ifile = open(os.path.join(self.incdir, 'version.hpp'))
except FileNotFoundError:
self.version = None
return
for line in ifile:
if line.startswith("#define") and 'BOOST_LIB_VERSION' in line:
ver = line.split()[-1]

Loading…
Cancel
Save