def _get_boost_version(boost_path):
# Assuming the path exists here
# Return (major, minor, patch)
with open(os.path.join(boost_path,"boost","version.hpp"),"r") as f:
data = f.read()
version = int(re.findall("#define +BOOST_VERSION +([0-9]+)",data)[0])
return version / 100000, version / 100 % 1000, version % 100
评论列表
文章目录