Aaargh! I've discovered the source of the error. Somewhere between 1.3.24 (default version on Debian stable) and 1.3.28 (version on Ubuntu edgy) the behaviour of swig changed so the output of "swig -version" was directed to standard output rather than standard error. This explains the blank output for SWIG_version_output on Debian stable.
Modification commited to CVS to check ERROR_VARIABLE if OUTPUT_VARIABLE is blank. Now works again for me. Andrew On Tue, Jan 30, 2007 at 08:55:15AM +0000, Andrew Ross wrote: > > I'm currently experiencing problems with a fresh cmake build failing > on my Debian stable system. Problem is that SWIG_VERSION is not being > set, so the call to TRANSFORM_VERSION in plplot.cmake fails. > > Initial investigation suggests that the command > > EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -version > OUTPUT_VARIABLE SWIG_version_output > ERROR_VARIABLE SWIG_version_error > RESULT_VARIABLE SWIG_version_result) > > suceeds, but if I print out SWIG_version_output it is blank. > > For reference, the version of swig is 1.3.24. CMake is 2.4.5. > > Output of swig -version is (note blank line before and after) > > SWIG Version 1.3.24 > Copyright (c) 1995-1998 > University of Utah and the Regents of the University of California > Copyright (c) 1998-2004 > University of Chicago > Compiled with g++ [i686-pc-linux-gnu] > > > Any ideas Alan? Does it work on your Debian system? > > Andrew ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel