Fix caffe build issue with python 3 (#5324)
This commit is contained in:
parent
2eb8db1dd2
commit
156dedac6b
@ -84,4 +84,8 @@ def cmake_args(self):
|
||||
'-DUSE_LEVELDB=%s' % ('+leveldb' in spec),
|
||||
'-DUSE_LMDB=%s' % ('+lmdb' in spec)]
|
||||
|
||||
if spec.satisfies('+python'):
|
||||
version = spec['python'].version.up_to(1)
|
||||
args.append('-Dpython_version=%s' % version)
|
||||
|
||||
return args
|
||||
|
Loading…
Reference in New Issue
Block a user