Fix caffe build issue with python 3 (#5324)
This commit is contained in:
		
				
					committed by
					
						
						Todd Gamblin
					
				
			
			
				
	
			
			
			
						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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user