comparison 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
comparison
equal deleted inserted replaced
252:7f33554e439a 253:5e9b5bbdc56b
23 "LIBS"}; 23 "LIBS"};
24 select = validatestring (name, opts, "get_vars", "name"); 24 select = validatestring (name, opts, "get_vars", "name");
25 switch (select) 25 switch (select)
26 case "CPPFLAGS" 26 case "CPPFLAGS"
27 var = "@DENSE_CPPFLAGS@ @DOLFIN_CPPFLAGS@ @EIGEN_CPPFLAGS@"; 27 var = "@DENSE_CPPFLAGS@ @DOLFIN_CPPFLAGS@ @EIGEN_CPPFLAGS@";
28 if (! isempty (strfind (var, 'DOLFIN_VERSION="1.4.0"')))
29 var = [var, " -DLATEST_DOLFIN"];
30 endif
28 case "LIBS" 31 case "LIBS"
29 tokens = strsplit (strtrim ("@EIGEN_LIBS@ @DOLFIN_LIBS@")); 32 tokens = strsplit (strtrim ("@EIGEN_LIBS@ @DOLFIN_LIBS@"));
30 var = strjoin (tokens, '" "'); 33 var = strjoin (tokens, '" "');
31 var = ['"', var, '"']; 34 var = ['"', var, '"'];
32 otherwise 35 otherwise