Commit 40d7dab1 authored by André Anjos's avatar André Anjos 💬
Browse files

Fix version requirement logic

parent 6fce2122
......@@ -92,9 +92,12 @@ class boost:
if not candidates:
raise RuntimeError("could not find any version of boost on the file system (looked at: %s)" % (', '.join(candidates)))
found = False
if not requirement:
self.include_directory = candidates[0]
self.version = boost_version(self.include_directory)
found = True
else:
......@@ -112,8 +115,11 @@ class boost:
(operator == '==' and available == required):
self.include_directory = path
self.version = version
else:
raise RuntimeError("could not find the required (%s) version of boost on the file system (looked at: %s)" % (requirement, ', '.join(candidates)))
found = True
break
if not found:
raise RuntimeError("could not find the required (%s) version of boost on the file system (looked at: %s)" % (requirement, ', '.join(candidates)))
# normalize
self.include_directory = os.path.normpath(self.include_directory)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment