diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-08 21:15:33 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-07-08 21:15:33 +0300 |
commit | 82811798887485534165d1ba99a402272bd322ad (patch) | |
tree | fd9884e8e4c8200475d74b7a86d145c90218d9b9 | |
parent | 9186d7c6a6e8771dd0654480d39646451ec00029 (diff) | |
download | meson-82811798887485534165d1ba99a402272bd322ad.zip meson-82811798887485534165d1ba99a402272bd322ad.tar.gz meson-82811798887485534165d1ba99a402272bd322ad.tar.bz2 |
Handle case of Boost not found.
-rw-r--r-- | dependencies.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dependencies.py b/dependencies.py index bbcaa92..c5089bb 100644 --- a/dependencies.py +++ b/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] |