aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-07-08 21:15:33 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-07-08 21:15:33 +0300
commit82811798887485534165d1ba99a402272bd322ad (patch)
treefd9884e8e4c8200475d74b7a86d145c90218d9b9
parent9186d7c6a6e8771dd0654480d39646451ec00029 (diff)
downloadmeson-82811798887485534165d1ba99a402272bd322ad.zip
meson-82811798887485534165d1ba99a402272bd322ad.tar.gz
meson-82811798887485534165d1ba99a402272bd322ad.tar.bz2
Handle case of Boost not found.
-rw-r--r--dependencies.py6
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]