From 7135e2797a80f224541080117313088273f02cad Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 4 Jan 2015 20:00:37 +0200 Subject: Only run oneof test when protoc >= 2.6 is available --- tests/SConstruct | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/SConstruct') diff --git a/tests/SConstruct b/tests/SConstruct index 9c222daa..61ce0c37 100644 --- a/tests/SConstruct +++ b/tests/SConstruct @@ -72,6 +72,13 @@ if not env.GetOption('clean'): else: conf.env.Append(PROTOCPATH = '/usr/include') + # Check protoc version + status, output = conf.TryAction('protoc --version') + if status: + conf.env.Append(PROTOC_VERSION = output) + else: + conf.env.Append(PROTOC_VERSION = "") + # Check if libmudflap is available (only with GCC) if 'gcc' in env['CC']: if conf.CheckLib('mudflap'): -- cgit 1.2.3-korg