diff inst/private/get_vars.m.in @ 253:5e9b5bbdc56b

Support both DOLFIN 1.3.0 and 1.4.0 * src/dolfin_compat.h: use a macro to set the correct shared_ptr (std or boost)
author Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
date Tue, 29 Jul 2014 18:05:56 +0200
parents 1a3674836579
children
line wrap: on
line diff
--- a/inst/private/get_vars.m.in	Tue Jul 29 17:11:59 2014 +0200
+++ b/inst/private/get_vars.m.in	Tue Jul 29 18:05:56 2014 +0200
@@ -25,6 +25,9 @@
   switch (select)
     case "CPPFLAGS"
       var = "@DENSE_CPPFLAGS@ @DOLFIN_CPPFLAGS@ @EIGEN_CPPFLAGS@";
+      if (! isempty (strfind (var, 'DOLFIN_VERSION="1.4.0"')))
+        var = [var, " -DLATEST_DOLFIN"];
+      endif
     case "LIBS"
       tokens = strsplit (strtrim ("@EIGEN_LIBS@ @DOLFIN_LIBS@"));
       var = strjoin (tokens, '" "');
@@ -32,4 +35,4 @@
     otherwise
       error ("get_vars: the requested variable is not available.");
   endswitch
-endfunction
\ No newline at end of file
+endfunction