From c64731af61a2d1b0917e7f09f2ed40569b8c19b6 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Wed, 20 Jun 2012 19:32:42 -0400 Subject: swig: Use SWIG from environment when determining version This patch fixes a minor issue in the SConstruct where a hardcoded swig is used instead of the environment SWIG when determining the version. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index 1b46e4a4c..b33495939 100755 --- a/SConstruct +++ b/SConstruct @@ -580,7 +580,7 @@ if not main.has_key('SWIG'): Exit(1) # Check for appropriate SWIG version -swig_version = readCommand(('swig', '-version'), exception='').split() +swig_version = readCommand([main['SWIG'], '-version'], exception='').split() # First 3 words should be "SWIG Version x.y.z" if len(swig_version) < 3 or \ swig_version[0] != 'SWIG' or swig_version[1] != 'Version': -- cgit v1.2.3