yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07401
[Branch ~yade-dev/yade/trunk] Rev 2802: Fixes 748943. Thanks Bruno for pointing out
------------------------------------------------------------
revno: 2802
fixes bug(s): https://launchpad.net/bugs/748943
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2011-04-04 10:25:36 +0200
message:
Fixes 748943. Thanks Bruno for pointing out
modified:
SConstruct
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'SConstruct'
--- SConstruct 2011-03-24 16:27:31 +0000
+++ SConstruct 2011-04-04 08:25:36 +0000
@@ -122,6 +122,19 @@
print 'ERROR: using "features=all" is illegal, since it breaks feature detection at runtime (SCons limitation). Write out all features separated by commas instead. Sorry.'
Exit(1)
+#Clean eigen directories
+if env.has_key('CPPPATH'):
+ cpppathes=colonSplit(env['CPPPATH'])
+ env['CPPPATH'] = ''
+ z=0
+ for i in cpppathes:
+ if (i[:-1] <> '/usr/include/eigen'):
+ if (z==0):
+ env.Append(CPPPATH=i)
+ else:
+ env.Append(CPPPATH=":"+i)
+ z+=1
+
#Check, is there eigen3 directory, if not - use eigen2
if os.path.exists('/usr/include/eigen3'):
print "Eigen 3 math library will be used"