|
From: <ai...@us...> - 2011-01-12 02:07:10
|
Revision: 11488
http://plplot.svn.sourceforge.net/plplot/?rev=11488&view=rev
Author: airwin
Date: 2011-01-12 02:07:03 +0000 (Wed, 12 Jan 2011)
Log Message:
-----------
Make build system fall back to matwrapped Octave bindings if swig is
not available.
Modified Paths:
--------------
trunk/cmake/modules/octave.cmake
Modified: trunk/cmake/modules/octave.cmake
===================================================================
--- trunk/cmake/modules/octave.cmake 2011-01-12 01:11:42 UTC (rev 11487)
+++ trunk/cmake/modules/octave.cmake 2011-01-12 02:07:03 UTC (rev 11488)
@@ -264,4 +264,10 @@
set(DEFINE_PL_DOUBLE "#define PL_DOUBLE")
endif(PL_DOUBLE)
option(ENABLE_swig_octave "Enable Octave bindings generated by SWIG" ON)
+ if(NOT SWIG_FOUND AND ENABLE_swig_octave)
+ message(STATUS "WARNING: "
+ "SWIG not found. Falling back to deprecated matwrapped octave bindings.")
+ set(ENABLE_swig_octave OFF CACHE BOOL "Enable Octave bindings generated by SWIG" FORCE)
+ endif(NOT SWIG_FOUND AND ENABLE_swig_octave)
+
endif(ENABLE_octave)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|