From 43c2e3a29142e6067c399361ff986b987d22461c Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 31 Mar 2011 16:55:16 +0000 Subject: [PATCH] SConscript didn't fail when protobuffers version was insufficient (Thanks yobiSource) --- SConstruct | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index ad6db6905..f5cf1f2d7 100644 --- a/SConstruct +++ b/SConstruct @@ -141,9 +141,10 @@ if not (conf.CheckBoost('1.37')): Exit(-1); #check for protobuf 2.3.0, else rebuild proto files if not (conf.CheckProtobuf('2.3.0')): - if not (env.Detect('protoc')): - print 'protobuffer compiler not found' - Exit(-1); + print 'libprotobuf version >= 2.3.0 needed' +if not (env.Detect('protoc')): + print 'protobuffer compiler not found' + Exit(-1); protobld = Builder(action = 'protoc -I=DataStructures/pbf-proto --cpp_out=DataStructures/pbf-proto $SOURCE') env.Append(BUILDERS = {'Protobuf' : protobld})